mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-06 20:33:54 +00:00
llvm.dbg.declare is always used for local variable's debug info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4202b84d7
commit
30d7b650aa
@ -442,10 +442,7 @@ bool FastISel::SelectCall(User *I) {
|
||||
MachineInstr *DeclareMI
|
||||
= BuildMI(MBB, DL, II).addFrameIndex(FI).addGlobalAddress(GV);
|
||||
DIVariable DV(cast<GlobalVariable>(GV));
|
||||
if (!DV.isNull()) {
|
||||
// This is a local variable
|
||||
DW->RecordVariableScope(DV, DeclareMI);
|
||||
}
|
||||
DW->RecordVariableScope(DV, DeclareMI);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user