summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-03-15 21:33:44 +0000
committerEric Christopher <echristo@apple.com>2012-03-15 21:33:44 +0000
commit142820ba8da4ca0132963cce59eac7d6b8fe2527 (patch)
tree501c536645405ea83e6ec0d6e2e920230883f892 /llvm/lib/CodeGen/SelectionDAG
parentbe7a1016fc7609ab0e83458e17e856040b150b43 (diff)
downloadbcm5719-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/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FastISel.cpp8
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;
OpenPOWER on IntegriCloud