LLVM: lib/CodeGen/AsmPrinter/DwarfStringPool.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9#ifndef LLVM_LIB_CODEGEN_ASMPRINTER_DWARFSTRINGPOOL_H

10#define LLVM_LIB_CODEGEN_ASMPRINTER_DWARFSTRINGPOOL_H

11

17

18namespace llvm {

19

23

24

25

26

29

33 unsigned NumIndexedStrings = 0;

34 bool ShouldCreateSymbols;

35

37

38public:

40

43

47

49 MCSection *OffsetSection = nullptr,

50 bool UseRelativeOffsets = false);

51

52 bool empty() const { return Pool.empty(); }

53

54 unsigned size() const { return Pool.size(); }

55

57

58

60

61

62

63

65};

66

67}

68

69#endif

This file defines the StringMap class.

This file defines the BumpPtrAllocator interface.

static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")

#define LLVM_ABI_FOR_TEST

This class is intended to be used as a driving class for all asm writers.

DwarfStringPoolEntryRef: Dwarf string pool entry reference.

LLVM_ABI_FOR_TEST EntryRef getEntry(AsmPrinter &Asm, StringRef Str)

Get a reference to an entry in the string pool.

LLVM_ABI_FOR_TEST EntryRef getIndexedEntry(AsmPrinter &Asm, StringRef Str)

Same as getEntry, except that you can use EntryRef::getIndex to obtain a unique ID of this entry (e....

DwarfStringPoolEntryRef EntryRef

Definition DwarfStringPool.h:39

bool empty() const

Definition DwarfStringPool.h:52

unsigned getNumIndexedStrings() const

Definition DwarfStringPool.h:56

LLVM_ABI_FOR_TEST void emitStringOffsetsTableHeader(AsmPrinter &Asm, MCSection *OffsetSection, MCSymbol *StartSym)

unsigned size() const

Definition DwarfStringPool.h:54

LLVM_ABI_FOR_TEST DwarfStringPool(BumpPtrAllocator &A, AsmPrinter &Asm, StringRef Prefix)

LLVM_ABI_FOR_TEST void emit(AsmPrinter &Asm, MCSection *StrSection, MCSection *OffsetSection=nullptr, bool UseRelativeOffsets=false)

Instances of this class represent a uniqued identifier for a section in the current translation unit.

MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...

StringMapEntry - This is used to represent one value that is inserted into a StringMap.

StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...

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

This is an optimization pass for GlobalISel generic memory operations.

BumpPtrAllocatorImpl<> BumpPtrAllocator

The standard BumpPtrAllocator which just uses the default template parameters.

Data for a string pool entry.