diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-14 01:35:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-14 01:35:17 +0000 |
commit | eddbc20e2ee68c28de7461ea3f3c901d99418748 (patch) | |
tree | d48d84893624bec51dda2a29d5381d0090cb5c44 /llvm/lib/Bytecode | |
parent | ac1a547a381390f569e5116a3832dc1e8dc1341b (diff) | |
download | bcm5719-llvm-eddbc20e2ee68c28de7461ea3f3c901d99418748.tar.gz bcm5719-llvm-eddbc20e2ee68c28de7461ea3f3c901d99418748.zip |
Minor cleanups
llvm-svn: 16961
Diffstat (limited to 'llvm/lib/Bytecode')
-rw-r--r-- | llvm/lib/Bytecode/Writer/Writer.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp index 60a48cc2654..fe9212171a9 100644 --- a/llvm/lib/Bytecode/Writer/Writer.cpp +++ b/llvm/lib/Bytecode/Writer/Writer.cpp @@ -179,8 +179,8 @@ inline BytecodeBlock::BytecodeBlock(unsigned ID, BytecodeWriter& w, 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 @@ inline BytecodeBlock::~BytecodeBlock() { // Do backpatch when block go 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 @@ void BytecodeWriter::outputType(const Type *T) { 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"; |