Skip to content

Commit 2d508e0

Browse files
committed
[llvm] export private API so that DebugInfoLogicalViewTests and DebugInfoDWARFTests build against Windows DLL
1 parent 33a1da7 commit 2d508e0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.h

Lines changed: 6 additions & 5 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,12 +38,12 @@ 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, StringRef Prefix);
4142

42-
void emitStringOffsetsTableHeader(AsmPrinter &Asm, MCSection *OffsetSection,
43+
LLVM_ABI void emitStringOffsetsTableHeader(AsmPrinter &Asm, MCSection *OffsetSection,
4344
MCSymbol *StartSym);
4445

45-
void emit(AsmPrinter &Asm, MCSection *StrSection,
46+
LLVM_ABI void emit(AsmPrinter &Asm, MCSection *StrSection,
4647
MCSection *OffsetSection = nullptr,
4748
bool UseRelativeOffsets = false);
4849

@@ -53,12 +54,12 @@ class DwarfStringPool {
5354
unsigned getNumIndexedStrings() const { return NumIndexedStrings; }
5455

5556
/// Get a reference to an entry in the string pool.
56-
EntryRef getEntry(AsmPrinter &Asm, StringRef Str);
57+
LLVM_ABI EntryRef getEntry(AsmPrinter &Asm, StringRef Str);
5758

5859
/// Same as getEntry, except that you can use EntryRef::getIndex to obtain a
5960
/// unique ID of this entry (e.g., for use in indexed forms like
6061
/// DW_FORM_strx).
61-
EntryRef getIndexedEntry(AsmPrinter &Asm, StringRef Str);
62+
LLVM_ABI EntryRef getIndexedEntry(AsmPrinter &Asm, StringRef Str);
6263
};
6364

6465
} // end namespace llvm

0 commit comments

Comments
 (0)