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

Chris Lattner lattner at cs.uiuc.edu
Wed Oct 13 18:35:30 PDT 2004



Changes in directory llvm/lib/Bytecode/Writer:

Writer.cpp updated: 1.78 -> 1.79
---
Log message:

Minor cleanups


---
Diffs of the changes:  (+3 -7)

Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.78 llvm/lib/Bytecode/Writer/Writer.cpp:1.79
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.78	Wed Sep  1 17:55:35 2004
+++ llvm/lib/Bytecode/Writer/Writer.cpp	Wed Oct 13 20:35:17 2004
@@ -179,8 +179,8 @@
   Loc = w.size();
 }
 
-inline BytecodeBlock::~BytecodeBlock() {           // Do backpatch when block goes out
-				    // of scope...
+inline BytecodeBlock::~BytecodeBlock() { // Do backpatch when block goes out
+				         // of scope...
   if (Loc == Writer.size() && ElideIfEmpty) {
     // If the block is empty, and we are allowed to, do not emit the block at
     // all!
@@ -188,8 +188,6 @@
     return;
   }
 
-  //cerr << "OldLoc = " << Loc << " NewLoc = " << NewLoc << " diff = "
-  //     << (NewLoc-Loc) << endl;
   if (HasLongFormat)
     Writer.output(unsigned(Writer.size()-Loc), int(Loc-4));
   else
@@ -277,12 +275,10 @@
     break;
   }
 
-  case Type::OpaqueTyID: {
+  case Type::OpaqueTyID:
     // No need to emit anything, just the count of opaque types is enough.
     break;
-  }
 
-  //case Type::PackedTyID:
   default:
     std::cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize"
               << " Type '" << T->getDescription() << "'\n";






More information about the llvm-commits mailing list