summaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-26 20:21:46 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-26 20:21:46 +0000
commitf4a1e1a69f0727762a73ef0d551e3bbd16b7c04e (patch)
treecea2e90de46a4b86a7a358785d96dfcfdbb0c848 /lib/CodeGen/MachineFunction.cpp
parentdbcc2e119d57dba1e2f013d304ebfbe894c98106 (diff)
downloadllvm-f4a1e1a69f0727762a73ef0d551e3bbd16b7c04e.tar.gz
llvm-f4a1e1a69f0727762a73ef0d551e3bbd16b7c04e.tar.bz2
llvm-f4a1e1a69f0727762a73ef0d551e3bbd16b7c04e.tar.xz
Teach MachineBasicBlock::print() to annotate instructions and blocks with
SlotIndexes when available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r--lib/CodeGen/MachineFunction.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp
index f2f6227002..c32906904f 100644
--- a/lib/CodeGen/MachineFunction.cpp
+++ b/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";