[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp

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



Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.137 -> 1.138
---
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:  (+2 -0)

 Writer.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.137 llvm/lib/Bytecode/Writer/Writer.cpp:1.138
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.137	Fri Dec  8 12:06:15 2006
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Sat Dec 16 23:15:12 2006
@@ -1297,4 +1297,6 @@
 
   // make sure it hits disk now
   Out.stream()->flush();
+  void * p;
+  Out << std::hex << p << "\n";
 }






More information about the llvm-commits mailing list