LLVM: include/llvm/DebugInfo/CodeView/Formatters.h Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9#ifndef LLVM_DEBUGINFO_CODEVIEW_FORMATTERS_H

10#define LLVM_DEBUGINFO_CODEVIEW_FORMATTERS_H

11

20#include

21

22namespace llvm {

23

25

27

29

39

40}

41

45

49

50}

51

53public:

56 if (V.isNoneType())

57 Stream << "";

58 else {

59 Stream << formatv("{0:X+4}", V.getIndex());

60 if (V.isSimple())

62 }

63 }

64};

65

72

73}

74

75#endif

ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...

FormatAdapter(ArrayRef< uint8_t > &&Item)

StringRef - Represent a constant reference to a string, i.e.

static LLVM_ABI StringRef simpleTypeName(TypeIndex TI)

Definition Formatters.h:30

GuidAdapter(ArrayRef< uint8_t > Guid)

void format(raw_ostream &Stream, StringRef Style) override

This class implements an extremely fast bulk output stream that can only output to a stream.

detail::GuidAdapter fmt_guid(StringRef Item)

Definition Formatters.h:42

This is an optimization pass for GlobalISel generic memory operations.

auto formatv(bool Validate, const char *Fmt, Ts &&...Vals)

This represents the 'GUID' type from windows.h.

static void format(const codeview::GUID &V, llvm::raw_ostream &Stream, StringRef Style)

Definition Formatters.h:67

static void format(const codeview::TypeIndex &V, raw_ostream &Stream, StringRef Style)

Definition Formatters.h:54