mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
- Type::TypeTyID doesn't exist any more (bug 122)
- Types don't have names any more, just write them on ostream directly git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0bc0c1822
commit
5e394ff01b
@ -146,10 +146,6 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
|
|||||||
output_vbr(cast<ConstantSInt>(CPV)->getValue(), Out);
|
output_vbr(cast<ConstantSInt>(CPV)->getValue(), Out);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Type::TypeTyID: // Serialize type type
|
|
||||||
assert(0 && "Types should not be in the Constant!");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case Type::ArrayTyID: {
|
case Type::ArrayTyID: {
|
||||||
const ConstantArray *CPA = cast<ConstantArray>(CPV);
|
const ConstantArray *CPA = cast<ConstantArray>(CPV);
|
||||||
assert(!CPA->isString() && "Constant strings should be handled specially!");
|
assert(!CPA->isString() && "Constant strings should be handled specially!");
|
||||||
@ -193,7 +189,7 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
|
|||||||
case Type::LabelTyID:
|
case Type::LabelTyID:
|
||||||
default:
|
default:
|
||||||
std::cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize"
|
std::cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize"
|
||||||
<< " type '" << CPV->getType()->getName() << "'\n";
|
<< " type '" << CPV->getType() << "'\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user