diff options
author | Pavel Labath <labath@google.com> | 2018-07-25 16:34:43 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-07-25 16:34:43 +0000 |
commit | da3c4fb5fec193366a442bf6240ace83e7541e66 (patch) | |
tree | af1643a540d800cd02e806886d3658e324b3c0d6 /llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | |
parent | 4e07509d18f17b5ea387d2ddc16381ccb316927b (diff) | |
download | llvm-da3c4fb5fec193366a442bf6240ace83e7541e66.zip llvm-da3c4fb5fec193366a442bf6240ace83e7541e66.tar.gz llvm-da3c4fb5fec193366a442bf6240ace83e7541e66.tar.bz2 |
Revert "dwarfgen: Add support for generating the debug_str_offsets section, take 2"
This reverts commit r337933. The build error is fixed but the test now
fails on the darwin buildbots. Investigating...
llvm-svn: 337935
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp index a61fa83..f296467 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp @@ -39,28 +39,6 @@ DwarfStringPool::EntryRef DwarfStringPool::getEntry(AsmPrinter &Asm, return EntryRef(*I.first); } -void DwarfStringPool::emitStringOffsetsTableHeader(AsmPrinter &Asm, - MCSection *Section, - MCSymbol *StartSym) { - if (empty()) - return; - Asm.OutStreamer->SwitchSection(Section); - unsigned EntrySize = 4; - // FIXME: DWARF64 - // We are emitting the header for a contribution to the string offsets - // table. The header consists of an entry with the contribution's - // size (not including the size of the length field), the DWARF version and - // 2 bytes of padding. - Asm.emitInt32(size() * EntrySize + 4); - Asm.emitInt16(Asm.getDwarfVersion()); - Asm.emitInt16(0); - // Define the symbol that marks the start of the contribution. It is - // referenced by most unit headers via DW_AT_str_offsets_base. - // Split units do not use the attribute. - if (StartSym) - Asm.OutStreamer->EmitLabel(StartSym); -} - void DwarfStringPool::emit(AsmPrinter &Asm, MCSection *StrSection, MCSection *OffsetSection, bool UseRelativeOffsets) { if (Pool.empty()) |