diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-10-29 23:55:17 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-10-29 23:55:17 +0000 |
commit | de9dbc5584d73584e0c766d8b11780c8d0061ecd (patch) | |
tree | 2598ad4db4756dd4d71a634ec8242435737ca771 /llvm/lib/Target/ARM/ARMConstantPoolValue.h | |
parent | 4421a114bb2e17a7154a7f659a06dd69401664b6 (diff) | |
download | bcm5719-llvm-de9dbc5584d73584e0c766d8b11780c8d0061ecd.tar.gz bcm5719-llvm-de9dbc5584d73584e0c766d8b11780c8d0061ecd.zip |
Add debugging support.
llvm-svn: 58408
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantPoolValue.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMConstantPoolValue.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.h b/llvm/lib/Target/ARM/ARMConstantPoolValue.h index caf8d54f163..b5f8325f045 100644 --- a/llvm/lib/Target/ARM/ARMConstantPoolValue.h +++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.h @@ -69,9 +69,23 @@ public: virtual void AddSelectionDAGCSEId(FoldingSetNodeID &ID); - virtual void print(raw_ostream &O) const; + void print(std::ostream *O) const { if (O) print(*O); } + void print(std::ostream &O) const; + void print(raw_ostream *O) const { if (O) print(*O); } + void print(raw_ostream &O) const; + void dump() const; }; + + inline std::ostream &operator<<(std::ostream &O, const ARMConstantPoolValue &V) { + V.print(O); + return O; +} +inline raw_ostream &operator<<(raw_ostream &O, const ARMConstantPoolValue &V) { + V.print(O); + return O; } +} // End llvm namespace + #endif |