summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
diff options
context:
space:
mode:
authorFrederic Riss <friss@apple.com>2014-11-12 23:48:14 +0000
committerFrederic Riss <friss@apple.com>2014-11-12 23:48:14 +0000
commit3a6b354b3e91876526cd1399be10fe828c617284 (patch)
tree9d8d94ff9134cf2c3442514bdf2903b2a352e059 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
parent39467276d083d984c98d4df2fe4bc016b5fbee90 (diff)
downloadbcm5719-llvm-3a6b354b3e91876526cd1399be10fe828c617284.tar.gz
bcm5719-llvm-3a6b354b3e91876526cd1399be10fe828c617284.zip
Fix emission of Dwarf accelerator table when there are multiple CUs.
The DIE offset in the accel tables is an offset relative to the start of the debug_info section, but we were encoding the offset to the start of the containing CU. llvm-svn: 221837
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 4acd7271be9..075c782d622 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1478,7 +1478,7 @@ void DwarfDebug::emitAccel(DwarfAccelTable &Accel, const MCSection *Section,
Asm->OutStreamer.EmitLabel(SectionBegin);
// Emit the full data.
- Accel.Emit(Asm, SectionBegin, &InfoHolder, DwarfStrSectionSym);
+ Accel.Emit(Asm, SectionBegin, this, DwarfStrSectionSym);
}
// Emit visible names into a hashed accelerator table section.
OpenPOWER on IntegriCloud