summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/Writer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-04-22 18:15:10 +0000
committerChris Lattner <sabre@nondot.org>2003-04-22 18:15:10 +0000
commit35834a503b3ad1ecbd8029f3deb0a3a9e243cf90 (patch)
treea9f744e6d33bcf2b7e517e69050bf603561a7e21 /llvm/lib/Bytecode/Writer/Writer.cpp
parentcebde8d74c7a4cff2ddf49b6637e6be2b9275c6f (diff)
downloadbcm5719-llvm-35834a503b3ad1ecbd8029f3deb0a3a9e243cf90.tar.gz
bcm5719-llvm-35834a503b3ad1ecbd8029f3deb0a3a9e243cf90.zip
Add support for reading and writing pointersize/endianness to and from bytecode
llvm-svn: 5839
Diffstat (limited to 'llvm/lib/Bytecode/Writer/Writer.cpp')
-rw-r--r--llvm/lib/Bytecode/Writer/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index 03a6c4668e9..f97d7e232b5 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/lib/Bytecode/Writer/Writer.cpp
@@ -43,8 +43,8 @@ BytecodeWriter::BytecodeWriter(std::deque<unsigned char> &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);
OpenPOWER on IntegriCloud