mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
[Constant Hoisting] Print the instructions in the correct order for debugging. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1021014c7b
commit
0db2ba1ce8
@ -488,8 +488,8 @@ void ConstantHoisting::emitBaseConstants(Instruction *Base, Constant *Offset,
|
|||||||
ClonedCastInst->insertAfter(CastInst);
|
ClonedCastInst->insertAfter(CastInst);
|
||||||
// Use the same debug location as the original cast instruction.
|
// Use the same debug location as the original cast instruction.
|
||||||
ClonedCastInst->setDebugLoc(CastInst->getDebugLoc());
|
ClonedCastInst->setDebugLoc(CastInst->getDebugLoc());
|
||||||
DEBUG(dbgs() << "Clone instruction: " << *ClonedCastInst << '\n'
|
DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n'
|
||||||
<< "To : " << *CastInst << '\n');
|
<< "To : " << *ClonedCastInst << '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG(dbgs() << "Update: " << *ConstUser.Inst << '\n');
|
DEBUG(dbgs() << "Update: " << *ConstUser.Inst << '\n');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user