aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorVladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com>2025-09-23 19:44:34 +0200
committerGitHub <noreply@github.com>2025-09-23 19:44:34 +0200
commit310811af6de889292aa8253af23362c3b70d99aa (patch)
tree06882c821e2e132408ef9ad501073bba0a1d3b8b /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parentd0eef22171096069fe4f6103b303bc5313c76fe7 (diff)
downloadllvm-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.cpp4
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;