diff options
| author | Eric Christopher <echristo@apple.com> | 2012-03-15 21:33:44 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2012-03-15 21:33:44 +0000 |
| commit | 142820ba8da4ca0132963cce59eac7d6b8fe2527 (patch) | |
| tree | 501c536645405ea83e6ec0d6e2e920230883f892 /llvm/lib | |
| parent | be7a1016fc7609ab0e83458e17e856040b150b43 (diff) | |
| download | bcm5719-llvm-142820ba8da4ca0132963cce59eac7d6b8fe2527.tar.gz bcm5719-llvm-142820ba8da4ca0132963cce59eac7d6b8fe2527.zip | |
Add some debugging output into fast isel as well.
llvm-svn: 152844
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index fd8ce786541..ff8e78757dc 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -577,12 +577,16 @@ bool FastISel::SelectCall(const User *I) { case Intrinsic::dbg_declare: { const DbgDeclareInst *DI = cast<DbgDeclareInst>(Call); if (!DIVariable(DI->getVariable()).Verify() || - !FuncInfo.MF->getMMI().hasDebugInfo()) + !FuncInfo.MF->getMMI().hasDebugInfo()) { + DEBUG(dbgs() << "Dropping debug info for " << *DI << "\n"); return true; + } const Value *Address = DI->getAddress(); - if (!Address || isa<UndefValue>(Address) || isa<AllocaInst>(Address)) + if (!Address || isa<UndefValue>(Address) || isa<AllocaInst>(Address)) { + DEBUG(dbgs() << "Dropping debug info for " << *DI << "\n"); return true; + } unsigned Reg = 0; unsigned Offset = 0; |

