[llvm-commits] CVS: llvm/include/llvm/Target/SubtargetFeature.h

Bill Wendling isanbard at gmail.com
Sat Dec 16 21:15:50 PST 2006



Changes in directory llvm/include/llvm/Target:

SubtargetFeature.h updated: 1.9 -> 1.10
---
Log message:

Added an automatic cast to "std::ostream*" etc. from OStream. We then can
rework the hacks that had us passing OStream in. We pass in std::ostream*
instead, check for null, and then dispatch to the correct print() method.


---
Diffs of the changes:  (+1 -0)

 SubtargetFeature.h |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/include/llvm/Target/SubtargetFeature.h
diff -u llvm/include/llvm/Target/SubtargetFeature.h:1.9 llvm/include/llvm/Target/SubtargetFeature.h:1.10
--- llvm/include/llvm/Target/SubtargetFeature.h:1.9	Tue Dec 12 13:26:50 2006
+++ llvm/include/llvm/Target/SubtargetFeature.h	Sat Dec 16 23:15:12 2006
@@ -98,6 +98,7 @@
   
   /// Print feature string.
   void print(std::ostream &OS) const;
+  void print(std::ostream *OS) const { if (OS) print(*OS); }
   
   // Dump feature info.
   void dump() const;






More information about the llvm-commits mailing list