diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-14 01:39:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-14 01:39:18 +0000 |
commit | 4a242b32f69115476dfc7cf0e7638615293c4995 (patch) | |
tree | a2c0147621ef2d22f1a59cd2f70978e029ea46cd /lib/Bytecode/Reader/Reader.cpp | |
parent | b0bf6643b0eb5cbcc3f97693bff676c273220dda (diff) | |
download | external_llvm-4a242b32f69115476dfc7cf0e7638615293c4995.tar.gz external_llvm-4a242b32f69115476dfc7cf0e7638615293c4995.tar.bz2 external_llvm-4a242b32f69115476dfc7cf0e7638615293c4995.zip |
Fit in 80 columns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index 293b908226..7bd9690bf8 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -742,8 +742,8 @@ void BytecodeReader::ParseInstruction(std::vector<unsigned> &Oprnds, 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 @@ void BytecodeReader::ParseInstruction(std::vector<unsigned> &Oprnds, /// 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 @@ void BytecodeReader::ParseModuleGlobalInfo() { } // 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 @@ void BytecodeReader::ParseVersionInfo() { 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 |