summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-12-24 01:23:21 -0800
committerDavid Blaikie <dblaikie@gmail.com>2019-12-24 01:23:21 -0800
commitfccac1ec16951e9a9811abf19e2c18be147854fc (patch)
treebf86c2f538a9061d7f0af14bf80dd8f9e68d388d /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent83c7a424d96803088847861286bb96849ef4ce50 (diff)
downloadbcm5719-llvm-fccac1ec16951e9a9811abf19e2c18be147854fc.tar.gz
bcm5719-llvm-fccac1ec16951e9a9811abf19e2c18be147854fc.zip
DebugInfo: Correct the form of DW_AT_macro_info in .dwo files (sec_offset, rather than data4)
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index 21c6636e94f..fa6800de795 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1195,7 +1195,7 @@ void DwarfDebug::finalizeModuleInfo() {
// If compile Unit has macros, emit "DW_AT_macro_info" attribute.
if (CUNode->getMacros()) {
if (useSplitDwarf())
- TheCU.addLabelDelta(TheCU.getUnitDie(), dwarf::DW_AT_macro_info,
+ TheCU.addSectionDelta(TheCU.getUnitDie(), dwarf::DW_AT_macro_info,
U.getMacroLabelBegin(),
TLOF.getDwarfMacinfoDWOSection()->getBeginSymbol());
else
OpenPOWER on IntegriCloud