[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp Reader.h

Chris Lattner lattner at cs.uiuc.edu
Fri May 6 15:35:23 PDT 2005



Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.162 -> 1.163
Reader.h updated: 1.22 -> 1.23
---
Log message:

remove some dead (always dynamically false) flags


---
Diffs of the changes:  (+0 -35)

 Reader.cpp |   20 --------------------
 Reader.h   |   15 ---------------
 2 files changed, 35 deletions(-)


Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.162 llvm/lib/Bytecode/Reader/Reader.cpp:1.163
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.162	Fri May  6 17:33:59 2005
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Fri May  6 17:35:09 2005
@@ -1991,9 +1991,6 @@
   has32BitTypes = false;
   hasNoDependentLibraries = false;
   hasAlignment = false;
-  hasInconsistentBBSlotNums = false;
-  hasVBRByteTypes = false;
-  hasUnnecessaryModuleBlockId = false;
   hasNoUndefValue = false;
   hasNoFlagsForFunctions = false;
   hasNoUnreachableInst = false;
@@ -2074,24 +2071,7 @@
 
   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));
   }


Index: llvm/lib/Bytecode/Reader/Reader.h
diff -u llvm/lib/Bytecode/Reader/Reader.h:1.22 llvm/lib/Bytecode/Reader/Reader.h:1.23
--- llvm/lib/Bytecode/Reader/Reader.h:1.22	Thu Apr 21 16:44:41 2005
+++ llvm/lib/Bytecode/Reader/Reader.h	Fri May  6 17:35:09 2005
@@ -321,21 +321,6 @@
   // 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.






More information about the llvm-commits mailing list