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 | 39bd365ee957d1ebb886dc77c4a251610bf3b83d (patch) | |
tree | 4104fbe1f6086068f0ff963e6d9c8828f59dfe86 /lib/CodeGen | |
parent | 045f2635a5664c0659134e6a5f6c4dbda17550f3 (diff) | |
download | external_llvm-39bd365ee957d1ebb886dc77c4a251610bf3b83d.zip external_llvm-39bd365ee957d1ebb886dc77c4a251610bf3b83d.tar.gz external_llvm-39bd365ee957d1ebb886dc77c4a251610bf3b83d.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 24fccf0..45c7ace 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/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; } |