Skip to content

Commit 41f22c5

Browse files
committed
[llvm] export private API so that DebugInfoLogicalViewTests and DebugInfoDWARFTests build against Windows DLL
1 parent 8134b97 commit 41f22c5

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "llvm/ADT/StringRef.h"
1414
#include "llvm/CodeGen/DwarfStringPoolEntry.h"
1515
#include "llvm/Support/Allocator.h"
16+
#include "llvm/Support/Compiler.h"
1617

1718
namespace llvm {
1819

@@ -37,14 +38,16 @@ class DwarfStringPool {
3738
public:
3839
using EntryRef = DwarfStringPoolEntryRef;
3940

40-
DwarfStringPool(BumpPtrAllocator &A, AsmPrinter &Asm, StringRef Prefix);
41+
LLVM_ABI DwarfStringPool(BumpPtrAllocator &A, AsmPrinter &Asm,
42+
StringRef Prefix);
4143

42-
void emitStringOffsetsTableHeader(AsmPrinter &Asm, MCSection *OffsetSection,
43-
MCSymbol *StartSym);
44+
LLVM_ABI void emitStringOffsetsTableHeader(AsmPrinter &Asm,
45+
MCSection *OffsetSection,
46+
MCSymbol *StartSym);
4447

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);
4851

4952
bool empty() const { return Pool.empty(); }
5053

@@ -53,12 +56,12 @@ class DwarfStringPool {
5356
unsigned getNumIndexedStrings() const { return NumIndexedStrings; }
5457

5558
/// 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);
5760

5861
/// Same as getEntry, except that you can use EntryRef::getIndex to obtain a
5962
/// unique ID of this entry (e.g., for use in indexed forms like
6063
/// DW_FORM_strx).
61-
EntryRef getIndexedEntry(AsmPrinter &Asm, StringRef Str);
64+
LLVM_ABI EntryRef getIndexedEntry(AsmPrinter &Asm, StringRef Str);
6265
};
6366

6467
} // end namespace llvm

0 commit comments

Comments
 (0)