diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 10:36:58 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-24 10:36:58 +0000 |
commit | 1cd1d98232c3c3a0bd3810c3bf6c2572ea02f208 (patch) | |
tree | 233ac1c2bca5a7f2a8eb43b1a2815d807d9e4f9f /lib/CodeGen/VirtRegMap.h | |
parent | b95c2fd2700a92a7b857ebd1ecf6c7d561d676d2 (diff) |
Move more to raw_ostream, provide support for writing MachineBasicBlock,
LiveInterval, etc to raw_ostream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76965 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.h')
-rw-r--r-- | lib/CodeGen/VirtRegMap.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/VirtRegMap.h b/lib/CodeGen/VirtRegMap.h index fe767b7671..7d1cf95fce 100644 --- a/lib/CodeGen/VirtRegMap.h +++ b/lib/CodeGen/VirtRegMap.h @@ -34,6 +34,7 @@ namespace llvm { class MachineRegisterInfo; class TargetInstrInfo; class TargetRegisterInfo; + class raw_ostream; class VirtRegMap : public MachineFunctionPass { public: @@ -483,6 +484,8 @@ namespace llvm { void print(std::ostream &OS, const Module* M = 0) const; void print(std::ostream *OS) const { if (OS) print(*OS); } + void print(raw_ostream &OS, const Module* M = 0) const; + void print(raw_ostream *OS) const { if (OS) print(*OS); } void dump() const; }; @@ -494,6 +497,14 @@ namespace llvm { VRM.print(OS); return OS; } + inline raw_ostream *operator<<(raw_ostream *OS, const VirtRegMap &VRM) { + VRM.print(OS); + return OS; + } + inline raw_ostream &operator<<(raw_ostream &OS, const VirtRegMap &VRM) { + VRM.print(OS); + return OS; + } } // End llvm namespace #endif |