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 | 23dbc8170c91c09bf1c7f3f18d4321e05c500db3 (patch) | |
tree | 97c958f3a4f7910e0899d5bf5886ad8a41a71954 /llvm/lib/CodeGen/RegAllocSimple.cpp | |
parent | 521eb8752b2e1ab7318169c10dd7a23acf78664b (diff) | |
download | bcm5719-llvm-23dbc8170c91c09bf1c7f3f18d4321e05c500db3.tar.gz bcm5719-llvm-23dbc8170c91c09bf1c7f3f18d4321e05c500db3.zip |
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.
llvm-svn: 14389
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocSimple.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocSimple.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocSimple.cpp b/llvm/lib/CodeGen/RegAllocSimple.cpp index 4e825b233e3..ad46bbfec1d 100644 --- a/llvm/lib/CodeGen/RegAllocSimple.cpp +++ b/llvm/lib/CodeGen/RegAllocSimple.cpp @@ -177,7 +177,7 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) { unsigned virtualReg = (unsigned) op.getReg(); DEBUG(std::cerr << "op: " << op << "\n"); DEBUG(std::cerr << "\t inst[" << i << "]: "; - MI->print(std::cerr, *TM)); + MI->print(std::cerr, TM)); // make sure the same virtual register maps to the same physical // register in any given instruction |