13
13
#include " llvm/ADT/StringRef.h"
14
14
#include " llvm/CodeGen/DwarfStringPoolEntry.h"
15
15
#include " llvm/Support/Allocator.h"
16
+ #include " llvm/Support/Compiler.h"
16
17
17
18
namespace llvm {
18
19
@@ -37,14 +38,16 @@ class DwarfStringPool {
37
38
public:
38
39
using EntryRef = DwarfStringPoolEntryRef;
39
40
40
- DwarfStringPool (BumpPtrAllocator &A, AsmPrinter &Asm, StringRef Prefix);
41
+ LLVM_ABI DwarfStringPool (BumpPtrAllocator &A, AsmPrinter &Asm,
42
+ StringRef Prefix);
41
43
42
- void emitStringOffsetsTableHeader (AsmPrinter &Asm, MCSection *OffsetSection,
43
- MCSymbol *StartSym);
44
+ LLVM_ABI void emitStringOffsetsTableHeader (AsmPrinter &Asm,
45
+ MCSection *OffsetSection,
46
+ MCSymbol *StartSym);
44
47
45
- void emit (AsmPrinter &Asm, MCSection *StrSection,
46
- MCSection *OffsetSection = nullptr ,
47
- bool UseRelativeOffsets = false );
48
+ LLVM_ABI void emit (AsmPrinter &Asm, MCSection *StrSection,
49
+ MCSection *OffsetSection = nullptr ,
50
+ bool UseRelativeOffsets = false );
48
51
49
52
bool empty () const { return Pool.empty (); }
50
53
@@ -53,12 +56,12 @@ class DwarfStringPool {
53
56
unsigned getNumIndexedStrings () const { return NumIndexedStrings; }
54
57
55
58
// / Get a reference to an entry in the string pool.
56
- EntryRef getEntry (AsmPrinter &Asm, StringRef Str);
59
+ LLVM_ABI EntryRef getEntry (AsmPrinter &Asm, StringRef Str);
57
60
58
61
// / Same as getEntry, except that you can use EntryRef::getIndex to obtain a
59
62
// / unique ID of this entry (e.g., for use in indexed forms like
60
63
// / DW_FORM_strx).
61
- EntryRef getIndexedEntry (AsmPrinter &Asm, StringRef Str);
64
+ LLVM_ABI EntryRef getIndexedEntry (AsmPrinter &Asm, StringRef Str);
62
65
};
63
66
64
67
} // end namespace llvm
0 commit comments