summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorWolfgang Pieb <Wolfgang.Pieb@sony.com>2018-01-11 02:35:00 +0000
committerWolfgang Pieb <Wolfgang.Pieb@sony.com>2018-01-11 02:35:00 +0000
commit20a745375c6aebc03432a25868472794de411f62 (patch)
tree6320b6d34e0cbb192e8a42b4ee4e9886bf2f2de0 /llvm/lib/CodeGen
parentddccd50313b5a0d9839aeba192baf73f0a77bc90 (diff)
downloadbcm5719-llvm-20a745375c6aebc03432a25868472794de411f62.tar.gz
bcm5719-llvm-20a745375c6aebc03432a25868472794de411f62.zip
[DWARF][NFC] Overload AsmPrinter::emitDwarfStringOffsets() to take a DwarfStringPoolEntry
record. Differential Revision: https://reviews.llvm.org/D41920 llvm-svn: 322250
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
index 08eb14e242c..e6e8871361b 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
@@ -167,14 +167,15 @@ void AsmPrinter::emitDwarfSymbolReference(const MCSymbol *Label,
EmitLabelDifference(Label, Label->getSection().getBeginSymbol(), 4);
}
-void AsmPrinter::emitDwarfStringOffset(DwarfStringPoolEntryRef S) const {
+void AsmPrinter::emitDwarfStringOffset(DwarfStringPoolEntry S) const {
if (MAI->doesDwarfUseRelocationsAcrossSections()) {
- emitDwarfSymbolReference(S.getSymbol());
+ assert(S.Symbol && "No symbol available");
+ emitDwarfSymbolReference(S.Symbol);
return;
}
// Just emit the offset directly; no need for symbol math.
- EmitInt32(S.getOffset());
+ EmitInt32(S.Offset);
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud