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

Chris Lattner lattner at cs.uiuc.edu
Tue Apr 22 13:16:02 PDT 2003


Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.32 -> 1.33

---
Log message:

Add support for reading and writing pointersize/endianness to and from bytecode



---
Diffs of the changes:

Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.32 llvm/lib/Bytecode/Writer/Writer.cpp:1.33
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.32	Wed Apr 16 16:16:05 2003
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Tue Apr 22 13:15:10 2003
@@ -43,8 +43,8 @@
   // Emit the top level CLASS block.
   BytecodeBlock ModuleBlock(BytecodeFormat::Module, Out);
 
-  bool isBigEndian = true;
-  bool hasLongPointers = true;
+  bool isBigEndian = M->isBigEndian();
+  bool hasLongPointers = M->has64BitPointers();
 
   // Output the version identifier... we are currently on bytecode version #2
   unsigned Version = (2 << 4) | isBigEndian | (hasLongPointers << 1);





More information about the llvm-commits mailing list