diff options
author | Tanya Lattner <tonic@nondot.org> | 2004-06-25 00:13:11 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2004-06-25 00:13:11 +0000 |
commit | b140762a45d21aaed054f15adaff0fc2274d939d (patch) | |
tree | a68975838c30f8e7ff326503550a907dc17b3f13 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 32b588039e8db86269edab5bd2b49ba1aebb00b8 (diff) |
Made a fix so that you can print out MachineInstrs that belong to a MachineBasicBlock that is not yet attached to a MachineFunction. This change includes changing the third operand (TargetMachine) to a pointer for the MachineInstr::print function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 91df40687c..196d6944b7 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -179,7 +179,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) { for (MachineBasicBlock::iterator mii = mbbi->begin(), mie = mbbi->end(); mii != mie; ++mii) { std::cerr << getInstructionIndex(mii) << '\t'; - mii->print(std::cerr, *tm_); + mii->print(std::cerr, tm_); } }); @@ -427,7 +427,7 @@ void LiveIntervals::computeIntervals() const TargetInstrDescriptor& tid = tm_->getInstrInfo()->get(mi->getOpcode()); DEBUG(std::cerr << getInstructionIndex(mi) << "\t"; - mi->print(std::cerr, *tm_)); + mi->print(std::cerr, tm_)); // handle implicit defs for (const unsigned* id = tid.ImplicitDefs; *id; ++id) @@ -467,7 +467,7 @@ void LiveIntervals::joinIntervals() mi != mie; ++mi) { const TargetInstrDescriptor& tid = tii.get(mi->getOpcode()); DEBUG(std::cerr << getInstructionIndex(mi) << '\t'; - mi->print(std::cerr, *tm_);); + mi->print(std::cerr, tm_);); // we only join virtual registers with allocatable // physical registers since we do not have liveness information |