diff options
author | Andrew Trick <atrick@apple.com> | 2013-01-25 07:45:25 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-01-25 07:45:25 +0000 |
commit | b36388a1cb2de8de334cf2c178aaff4ebab7499d (patch) | |
tree | 78ab78e1556b32931474b0aa0ce36fcb072776de /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 3256d4ff621a14cfbb45f7206e84e5c018042a0a (diff) | |
download | bcm5719-llvm-b36388a1cb2de8de334cf2c178aaff4ebab7499d.tar.gz bcm5719-llvm-b36388a1cb2de8de334cf2c178aaff4ebab7499d.zip |
ScheduleDAG: colorize the DOT graph and improve formatting.
llvm-svn: 173431
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 8f7c5fd0224..d8b5fd4ea3d 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1428,7 +1428,8 @@ static void printDebugLoc(DebugLoc DL, const MachineFunction *MF, } } -void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const { +void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM, + bool SkipOpers) const { // We can be a bit tidier if we know the TargetMachine and/or MachineFunction. const MachineFunction *MF = 0; const MachineRegisterInfo *MRI = 0; @@ -1465,6 +1466,9 @@ void MachineInstr::print(raw_ostream &OS, const TargetMachine *TM) const { else OS << "UNKNOWN"; + if (SkipOpers) + return; + // Print the rest of the operands. bool OmittedAnyCallClobbers = false; bool FirstOp = true; |