mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Minor cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16961 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -179,8 +179,8 @@ inline BytecodeBlock::BytecodeBlock(unsigned ID, BytecodeWriter& w,
|
|||||||
Loc = w.size();
|
Loc = w.size();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline BytecodeBlock::~BytecodeBlock() { // Do backpatch when block goes out
|
inline BytecodeBlock::~BytecodeBlock() { // Do backpatch when block goes out
|
||||||
// of scope...
|
// of scope...
|
||||||
if (Loc == Writer.size() && ElideIfEmpty) {
|
if (Loc == Writer.size() && ElideIfEmpty) {
|
||||||
// If the block is empty, and we are allowed to, do not emit the block at
|
// If the block is empty, and we are allowed to, do not emit the block at
|
||||||
// all!
|
// all!
|
||||||
@ -188,8 +188,6 @@ inline BytecodeBlock::~BytecodeBlock() { // Do backpatch when block go
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//cerr << "OldLoc = " << Loc << " NewLoc = " << NewLoc << " diff = "
|
|
||||||
// << (NewLoc-Loc) << endl;
|
|
||||||
if (HasLongFormat)
|
if (HasLongFormat)
|
||||||
Writer.output(unsigned(Writer.size()-Loc), int(Loc-4));
|
Writer.output(unsigned(Writer.size()-Loc), int(Loc-4));
|
||||||
else
|
else
|
||||||
@ -277,12 +275,10 @@ void BytecodeWriter::outputType(const Type *T) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case Type::OpaqueTyID: {
|
case Type::OpaqueTyID:
|
||||||
// No need to emit anything, just the count of opaque types is enough.
|
// No need to emit anything, just the count of opaque types is enough.
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
//case Type::PackedTyID:
|
|
||||||
default:
|
default:
|
||||||
std::cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize"
|
std::cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize"
|
||||||
<< " Type '" << T->getDescription() << "'\n";
|
<< " Type '" << T->getDescription() << "'\n";
|
||||||
|
Reference in New Issue
Block a user