diff options
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 |