diff options
author | Vladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com> | 2025-09-23 19:44:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-23 19:44:34 +0200 |
commit | 310811af6de889292aa8253af23362c3b70d99aa (patch) | |
tree | 06882c821e2e132408ef9ad501073bba0a1d3b8b /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | |
parent | d0eef22171096069fe4f6103b303bc5313c76fe7 (diff) | |
download | llvm-310811af6de889292aa8253af23362c3b70d99aa.zip llvm-310811af6de889292aa8253af23362c3b70d99aa.tar.gz llvm-310811af6de889292aa8253af23362c3b70d99aa.tar.bz2 |
Revert "[DebugInfo][DwarfDebug] Separate creation and population of abstract subprogram DIEs" (#160349)
Reverts llvm/llvm-project#159104 due to the issues reported in
https://github.com/llvm/llvm-project/issues/160197.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp index d98d180..0f3ff98 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp @@ -105,8 +105,6 @@ DebugHandlerBase::~DebugHandlerBase() = default; void DebugHandlerBase::beginModule(Module *M) { if (M->debug_compile_units().empty()) Asm = nullptr; - else - LScopes.initialize(*M); } // Each LexicalScope has first instruction and last instruction to mark @@ -271,7 +269,7 @@ void DebugHandlerBase::beginFunction(const MachineFunction *MF) { // Grab the lexical scopes for the function, if we don't have any of those // then we're not going to be able to do anything. - LScopes.scanFunction(*MF); + LScopes.initialize(*MF); if (LScopes.empty()) { beginFunctionImpl(MF); return; |