diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-26 20:21:46 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-26 20:21:46 +0000 |
commit | b7050233fbb030d83377d0092a9bb940a2a2ea3b (patch) | |
tree | 102c3360f07b1ad7166982dc0668858e8a3515df /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | db594373bd2d48f515117698c374eeedb0b8ce04 (diff) | |
download | bcm5719-llvm-b7050233fbb030d83377d0092a9bb940a2a2ea3b.tar.gz bcm5719-llvm-b7050233fbb030d83377d0092a9bb940a2a2ea3b.zip |
Teach MachineBasicBlock::print() to annotate instructions and blocks with
SlotIndexes when available.
llvm-svn: 117392
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index f2f6227002f..c32906904f7 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -280,7 +280,7 @@ void MachineFunction::dump() const { print(dbgs()); } -void MachineFunction::print(raw_ostream &OS) const { +void MachineFunction::print(raw_ostream &OS, SlotIndexes *Indexes) const { OS << "# Machine code for function " << Fn->getName() << ":\n"; // Print Frame Information @@ -329,7 +329,7 @@ void MachineFunction::print(raw_ostream &OS) const { for (const_iterator BB = begin(), E = end(); BB != E; ++BB) { OS << '\n'; - BB->print(OS); + BB->print(OS, Indexes); } OS << "\n# End machine code for function " << Fn->getName() << ".\n\n"; |