summaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-06 22:35:09 +0000
committerChris Lattner <sabre@nondot.org>2005-05-06 22:35:09 +0000
commit3f6948d686209ddfeb0808688b48a85101eeb1a6 (patch)
tree41fb47a248aa1dacd885fe816b31f143c5407d5e /lib/Bytecode
parentdee199fe82f9cc10d61fe6e8f9924b8837231e67 (diff)
downloadllvm-3f6948d686209ddfeb0808688b48a85101eeb1a6.tar.gz
llvm-3f6948d686209ddfeb0808688b48a85101eeb1a6.tar.bz2
llvm-3f6948d686209ddfeb0808688b48a85101eeb1a6.tar.xz
remove some dead (always dynamically false) flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp22
-rw-r--r--lib/Bytecode/Reader/Reader.h15
2 files changed, 1 insertions, 36 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index e48f64178c..7e5bed6989 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -1991,9 +1991,6 @@ void BytecodeReader::ParseVersionInfo() {
has32BitTypes = false;
hasNoDependentLibraries = false;
hasAlignment = false;
- hasInconsistentBBSlotNums = false;
- hasVBRByteTypes = false;
- hasUnnecessaryModuleBlockId = false;
hasNoUndefValue = false;
hasNoFlagsForFunctions = false;
hasNoUnreachableInst = false;
@@ -2074,24 +2071,7 @@ void BytecodeReader::ParseVersionInfo() {
case 5: // 1.4 (Released)
break;
-#if 0
- // FIXME: NONE of this is implemented yet!
-
- // In version 5, basic blocks have a minimum index of 0 whereas all the
- // other primitives have a minimum index of 1 (because 0 is the "null"
- // value. In version 5, we made this consistent.
- hasInconsistentBBSlotNums = true;
-
- // In version 5, the types SByte and UByte were encoded as vbr_uint so that
- // signed values > 63 and unsigned values >127 would be encoded as two
- // bytes. In version 5, they are encoded directly in a single byte.
- hasVBRByteTypes = true;
-
- // In version 5, modules begin with a "Module Block" which encodes a 4-byte
- // integer value 0x01 to identify the module block. This is unnecessary and
- // removed in version 5.
- hasUnnecessaryModuleBlockId = true;
-#endif
+
default:
error("Unknown bytecode version number: " + itostr(RevisionNum));
}
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h
index 425222b38d..6f9f859aee 100644
--- a/lib/Bytecode/Reader/Reader.h
+++ b/lib/Bytecode/Reader/Reader.h
@@ -321,21 +321,6 @@ private:
// unreachable instruction.
bool hasNoUnreachableInst;
- // In version 5, basic blocks have a minimum index of 0 whereas all the
- // other primitives have a minimum index of 1 (because 0 is the "null"
- // value. In version 5, we made this consistent.
- bool hasInconsistentBBSlotNums;
-
- // In version 5, the types SByte and UByte were encoded as vbr_uint so that
- // signed values > 63 and unsigned values >127 would be encoded as two
- // bytes. In version 5, they are encoded directly in a single byte.
- bool hasVBRByteTypes;
-
- // In version 5, modules begin with a "Module Block" which encodes a 4-byte
- // integer value 0x01 to identify the module block. This is unnecessary and
- // removed in version 5.
- bool hasUnnecessaryModuleBlockId;
-
/// CompactionTypes - If a compaction table is active in the current function,
/// this is the mapping that it contains. We keep track of what resolved type
/// it is as well as what global type entry it is.