diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-14 23:35:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-14 23:35:21 +0000 |
commit | 394afe0f903e57d311ab43d4bbec8c50e0c30403 (patch) | |
tree | 33c532fa04f4f7d642d043105b9da38b77285025 /llvm/lib/Bytecode/Reader/Reader.cpp | |
parent | de36304453fa519b9461aaa1299c935e4fab100a (diff) | |
download | bcm5719-llvm-394afe0f903e57d311ab43d4bbec8c50e0c30403.tar.gz bcm5719-llvm-394afe0f903e57d311ab43d4bbec8c50e0c30403.zip |
Version 1.2 now supports encoding strings as a special case, to avoid having
to emit all of those sbyte constants.
llvm-svn: 10863
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp index a0b40be6e39..7a6fa875114 100644 --- a/llvm/lib/Bytecode/Reader/Reader.cpp +++ b/llvm/lib/Bytecode/Reader/Reader.cpp @@ -552,8 +552,8 @@ void BytecodeParser::ParseVersionInfo(const unsigned char *&Buf, switch (RevisionNum) { case 2: // LLVM pre-1.0 release: will be deleted on the next rev - // Version #2 added information about all 4 linkage types instead of just - // having internal and external. + // Version #2 only supported 4 linkage types. It didn't support weak + // linkage. hasExtendedLinkageSpecs = false; hasOldStyleVarargs = true; hasVarArgCallPadding = true; @@ -561,8 +561,11 @@ void BytecodeParser::ParseVersionInfo(const unsigned char *&Buf, case 0: // LLVM 1.0, 1.1 release version // Compared to rev #2, we added support for weak linkage, a more dense // encoding, and better varargs support. + + // Base LLVM 1.0 bytecode format. break; case 1: // LLVM 1.2 release version + // LLVM 1.2 added explicit support for emitting strings efficiently. break; default: |