diff options
author | Igor Kudrin <ikudrin@accesssoftek.com> | 2020-09-15 11:31:00 +0700 |
---|---|---|
committer | Igor Kudrin <ikudrin@accesssoftek.com> | 2020-09-15 11:31:00 +0700 |
commit | 924dc5807690f9ee0a84e407e8cb943511845bf5 (patch) | |
tree | 985a8e0851a692e5800fb678492560922e806824 /llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | |
parent | 383d34c077ae7f845bf751936f59f12598e60b3e (diff) | |
download | llvm-924dc5807690f9ee0a84e407e8cb943511845bf5.zip llvm-924dc5807690f9ee0a84e407e8cb943511845bf5.tar.gz llvm-924dc5807690f9ee0a84e407e8cb943511845bf5.tar.bz2 |
[DebugInfo] Fix emitting DWARF64 DWO compilation units and string offset tables (9/19).
These two fixes are better to go together because llvm-dwarfdump is
unable to dump a table when another one is malformed.
Differential Revision: https://reviews.llvm.org/D87018
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp index 731d7c1..a4cb497 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp @@ -120,7 +120,7 @@ void DwarfStringPool::emit(AsmPrinter &Asm, MCSection *StrSection, } Asm.OutStreamer->SwitchSection(OffsetSection); - unsigned size = 4; // FIXME: DWARF64 is 8. + unsigned size = Asm.getDwarfOffsetByteSize(); for (const auto &Entry : Entries) if (UseRelativeOffsets) Asm.emitDwarfStringOffset(Entry->getValue()); |