forked from OSchip/llvm-project
Add some debugging output into fast isel as well.
llvm-svn: 152844
This commit is contained in:
parent
be7a1016fc
commit
142820ba8d
|
@ -577,12 +577,16 @@ bool FastISel::SelectCall(const User *I) {
|
||||||
case Intrinsic::dbg_declare: {
|
case Intrinsic::dbg_declare: {
|
||||||
const DbgDeclareInst *DI = cast<DbgDeclareInst>(Call);
|
const DbgDeclareInst *DI = cast<DbgDeclareInst>(Call);
|
||||||
if (!DIVariable(DI->getVariable()).Verify() ||
|
if (!DIVariable(DI->getVariable()).Verify() ||
|
||||||
!FuncInfo.MF->getMMI().hasDebugInfo())
|
!FuncInfo.MF->getMMI().hasDebugInfo()) {
|
||||||
|
DEBUG(dbgs() << "Dropping debug info for " << *DI << "\n");
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
const Value *Address = DI->getAddress();
|
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;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned Reg = 0;
|
unsigned Reg = 0;
|
||||||
unsigned Offset = 0;
|
unsigned Offset = 0;
|
||||||
|
|
Loading…
Reference in New Issue