summaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-14 01:35:17 +0000
committerChris Lattner <sabre@nondot.org>2004-10-14 01:35:17 +0000
commitb0bf6643b0eb5cbcc3f97693bff676c273220dda (patch)
treeb683341ef8f0c6eda2fb34b310ea087f67362c70 /lib/Bytecode/Writer
parent4523709d8ef0935da98276769508953a327fb00e (diff)
downloadllvm-b0bf6643b0eb5cbcc3f97693bff676c273220dda.tar.gz
llvm-b0bf6643b0eb5cbcc3f97693bff676c273220dda.tar.bz2
llvm-b0bf6643b0eb5cbcc3f97693bff676c273220dda.tar.xz
Minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer')
-rw-r--r--lib/Bytecode/Writer/Writer.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index 60a48cc265..fe9212171a 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/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";