summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/Writer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-18 05:54:48 +0000
committerChris Lattner <sabre@nondot.org>2003-10-18 05:54:48 +0000
commit9d573474905c559e3b801e6f9d61ded4266f3e37 (patch)
tree720a81b8d33c9d5df444ff23316b1e0643dc4e1e /llvm/lib/Bytecode/Writer/Writer.cpp
parent7c6c5392960e3ffd87a0e9e2c60fe052deaeccfc (diff)
downloadbcm5719-llvm-9d573474905c559e3b801e6f9d61ded4266f3e37.tar.gz
bcm5719-llvm-9d573474905c559e3b801e6f9d61ded4266f3e37.zip
Updated to emit the final 1.0 bytecode format. This supports weak linkage,
more efficient encoding of varargs calls, and the new varargs intrinsics. llvm-svn: 9221
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 0304ab6d4fb..09684614567 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/lib/Bytecode/Writer/Writer.cpp
@@ -48,8 +48,8 @@ BytecodeWriter::BytecodeWriter(std::deque<unsigned char> &o, const Module *M)
bool hasNoEndianness = M->getEndianness() == Module::AnyEndianness;
bool hasNoPointerSize = M->getPointerSize() == Module::AnyPointerSize;
- // Output the version identifier... we are currently on bytecode version #2
- unsigned Version = (2 << 4) | isBigEndian | (hasLongPointers << 1) |
+ // Output the version identifier... we are currently on bytecode version #0
+ unsigned Version = (0 << 4) | isBigEndian | (hasLongPointers << 1) |
(hasNoEndianness << 2) | (hasNoPointerSize << 3);
output_vbr(Version, Out);
align32(Out);
OpenPOWER on IntegriCloud