diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-01 18:51:07 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-01 18:51:07 +0000 |
commit | ea76e08645a5f57611ae04fa28bc6125782665fd (patch) | |
tree | 3629ba602c1b1736dda39f02c20ff6cffd3ca146 /llvm/lib/CodeGen | |
parent | 512ff7353e9bc7af72921b7713a5c0bb53a889d6 (diff) | |
download | bcm5719-llvm-ea76e08645a5f57611ae04fa28bc6125782665fd.tar.gz bcm5719-llvm-ea76e08645a5f57611ae04fa28bc6125782665fd.zip |
llvm.dbg.declare is always used for local variable's debug info.
llvm-svn: 74625
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 24fccf00eec..45c7ace78bd 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -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; } |