summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-03-27 17:17:16 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-03-27 17:17:16 +0000
commit6c08534affd4ca7490422090d19656a960304fee (patch)
tree9ff1ae6c09f01e5f9b6a88d6dfa9210119866f7c /llvm/lib/CodeGen/MachineFunction.cpp
parentd1664a1571e0840ab3067a40a3cd1ed263339135 (diff)
downloadbcm5719-llvm-6c08534affd4ca7490422090d19656a960304fee.tar.gz
bcm5719-llvm-6c08534affd4ca7490422090d19656a960304fee.zip
Print SSA and liveness tracking flags in MF::print().
llvm-svn: 153518
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 8ab8b184517..64e0083017b 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -284,7 +284,13 @@ void MachineFunction::dump() const {
}
void MachineFunction::print(raw_ostream &OS, SlotIndexes *Indexes) const {
- OS << "# Machine code for function " << Fn->getName() << ":\n";
+ OS << "# Machine code for function " << Fn->getName() << ": ";
+ if (RegInfo) {
+ OS << (RegInfo->isSSA() ? "SSA" : "Post SSA");
+ if (!RegInfo->tracksLiveness())
+ OS << ", not tracking liveness";
+ }
+ OS << '\n';
// Print Frame Information
FrameInfo->print(*this, OS);
OpenPOWER on IntegriCloud