Add debugging support.
llvm-svn: 58408
diff --git a/llvm/lib/Target/ARM/ARMConstantPoolValue.h b/llvm/lib/Target/ARM/ARMConstantPoolValue.h
index caf8d54..b5f8325 100644
--- a/llvm/lib/Target/ARM/ARMConstantPoolValue.h
+++ b/llvm/lib/Target/ARM/ARMConstantPoolValue.h
@@ -69,9 +69,23 @@
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