From 76e38968818e06e48b96aac07369d0c752d5a761 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 22 Apr 2003 18:15:10 +0000 Subject: Add support for reading and writing pointersize/endianness to and from bytecode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5839 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/Writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bytecode/Writer') diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index 03a6c4668e..f97d7e232b 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -43,8 +43,8 @@ BytecodeWriter::BytecodeWriter(std::deque &o, const Module *M) // 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); -- cgit v1.2.3-70-g09d2