Encode pic load / store instructions; fix some encoding bugs.
[oota-llvm.git] / lib / Target / ARM / ARMConstantPoolValue.h
index caf8d54f16334a38d953519c400791967de57e4e..b5f8325f045db9a79c5b35d1cb0da85e98311f6f 100644 (file)
@@ -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