Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 22 Dec 2021 22:29:41 +0000 (14:29 -0800)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 22 Dec 2021 23:27:09 +0000 (15:27 -0800)
commit62a6b9e9ab3eb778111e90a34fee1e6a7c64db8a
tree418759ef117d00ae5ab85070eed87e3cba4f1a50
parente4103c91f857e124a33e8c504e2d6ac2b2e06f53
Revert "[DwarfDebug] Support emitting function-local declaration for a lexical block" & dependent patches

This patch causes invalid DWARF to be generated in some cases of LTO +
Split DWARF - follow-up on the original review thread (D113741) contains
further detail and test cases.

This reverts commit 75b622a7959479ccdb758ebe0973061b7b4fcacd.
This reverts commit b6ccca217c35a95b8c2a337a7801b37cb23dbae2.
This reverts commit 514d37441918dd04a2cd4f35c08959d7c3ff096d.
14 files changed:
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
llvm/lib/CodeGen/AsmPrinter/DwarfFile.h
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
llvm/test/DebugInfo/Generic/import-inlined-declaration.ll [deleted file]
llvm/test/DebugInfo/Generic/imported-name-inlined.ll
llvm/test/DebugInfo/Generic/inlined-local-type.ll [deleted file]
llvm/test/DebugInfo/Generic/inlined-static-var.ll [deleted file]
llvm/test/DebugInfo/Generic/lexical_block_static.ll [deleted file]
llvm/test/DebugInfo/Generic/lexical_block_types.ll [deleted file]
llvm/test/DebugInfo/Generic/namespace.ll