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

Chris Lattner lattner at cs.uiuc.edu
Wed Oct 13 18:39:29 PDT 2004



Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.132 -> 1.133
---
Log message:

Fit in 80 columns


---
Diffs of the changes:  (+14 -13)

Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.132 llvm/lib/Bytecode/Reader/Reader.cpp:1.133
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.132	Tue Sep 28 11:57:46 2004
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Wed Oct 13 20:39:18 2004
@@ -742,8 +742,8 @@
       
       FirstVariableOperand = FTy->getNumParams();
 
-      if ((Oprnds.size()-FirstVariableOperand) & 1) // Must be pairs of type/value
-        error("Invalid call instruction!");
+      if ((Oprnds.size()-FirstVariableOperand) & 1) 
+        error("Invalid call instruction!");   // Must be pairs of type/value
         
       for (unsigned i = FirstVariableOperand, e = Oprnds.size(); 
            i != e; i += 2)
@@ -913,8 +913,8 @@
 
 /// Get a particular numbered basic block, which might be a forward reference.
 /// This works together with ParseBasicBlock to handle these forward references
-/// in a clean manner.  This function is used when constructing phi, br, switch, 
-/// and other instructions that reference basic blocks. Blocks are numbered 
+/// in a clean manner.  This function is used when constructing phi, br, switch,
+/// and other instructions that reference basic blocks. Blocks are numbered
 /// sequentially as they appear in the function.
 BasicBlock *BytecodeReader::getBasicBlock(unsigned ID) {
   // Make sure there is room in the table...
@@ -1826,7 +1826,8 @@
     }
 
     // Notify handler about the global value.
-    if (Handler) Handler->handleGlobalVariable(ElTy, isConstant, Linkage, SlotNo, initSlot);
+    if (Handler)
+      Handler->handleGlobalVariable(ElTy, isConstant, Linkage, SlotNo,initSlot);
 
     // Get next item
     VarType = read_vbr_uint();
@@ -1959,17 +1960,17 @@
   case 2:                // 1.2.5 (Not Released)
 
     // LLVM 1.2 and earlier had two-word block headers. This is a bit wasteful,
-    // especially for small files where the 8 bytes per block is a large fraction
-    // of the total block size. In LLVM 1.3, the block type and length are 
-    // compressed into a single 32-bit unsigned integer. 27 bits for length, 5
-    // bits for block type.
+    // especially for small files where the 8 bytes per block is a large
+    // fraction of the total block size. In LLVM 1.3, the block type and length
+    // are compressed into a single 32-bit unsigned integer. 27 bits for length,
+    // 5 bits for block type.
     hasLongBlockHeaders = true;
 
     // LLVM 1.2 and earlier wrote type slot numbers as vbr_uint32. In LLVM 1.3
-    // this has been reduced to vbr_uint24. It shouldn't make much difference 
-    // since we haven't run into a module with > 24 million types, but for safety
-    // the 24-bit restriction has been enforced in 1.3 to free some bits in
-    // various places and to ensure consistency.
+    // this has been reduced to vbr_uint24. It shouldn't make much difference
+    // since we haven't run into a module with > 24 million types, but for
+    // safety the 24-bit restriction has been enforced in 1.3 to free some bits
+    // in various places and to ensure consistency.
     has32BitTypes = true;
 
     // LLVM 1.2 and earlier did not provide a target triple nor a list of 






More information about the llvm-commits mailing list