aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineBasicBlock.h
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 /include/llvm/CodeGen/MachineBasicBlock.h
parentdbcc2e119d57dba1e2f013d304ebfbe894c98106 (diff)
downloadexternal_llvm-f4a1e1a69f0727762a73ef0d551e3bbd16b7c04e.zip
external_llvm-f4a1e1a69f0727762a73ef0d551e3bbd16b7c04e.tar.gz
external_llvm-f4a1e1a69f0727762a73ef0d551e3bbd16b7c04e.tar.bz2
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 'include/llvm/CodeGen/MachineBasicBlock.h')
-rw-r--r--include/llvm/CodeGen/MachineBasicBlock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineBasicBlock.h b/include/llvm/CodeGen/MachineBasicBlock.h
index bb7abdb..b0d77c5 100644
--- a/include/llvm/CodeGen/MachineBasicBlock.h
+++ b/include/llvm/CodeGen/MachineBasicBlock.h
@@ -23,6 +23,7 @@ class Pass;
class BasicBlock;
class MachineFunction;
class MCSymbol;
+class SlotIndexes;
class StringRef;
class raw_ostream;
@@ -361,7 +362,7 @@ public:
// Debugging methods.
void dump() const;
- void print(raw_ostream &OS) const;
+ void print(raw_ostream &OS, SlotIndexes* = 0) const;
/// getNumber - MachineBasicBlocks are uniquely numbered at the function
/// level, unless they're not in a MachineFunction yet, in which case this