mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
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
This commit is contained in:
@ -105,6 +105,6 @@ void MachineBasicBlock::print(std::ostream &OS) const
|
||||
<< ", LLVM BB @" << (const void*) LBB << "):\n";
|
||||
for (const_iterator I = begin(); I != end(); ++I) {
|
||||
OS << "\t";
|
||||
I->print(OS, getParent()->getTarget());
|
||||
I->print(OS, &getParent()->getTarget());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user