summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-04 11:37:54 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-04 11:37:54 +0000
commit25319569fb47b18984f9526cf7fe38f43e0fbbc6 (patch)
treef908c3abefc681ba31c73025cea181da2026beef /llvm/lib/Bytecode/Writer/ConstantWriter.cpp
parent5ef42370895a4257651579b46d028b7bf903e119 (diff)
downloadbcm5719-llvm-25319569fb47b18984f9526cf7fe38f43e0fbbc6.tar.gz
bcm5719-llvm-25319569fb47b18984f9526cf7fe38f43e0fbbc6.zip
- Type::TypeTyID doesn't exist any more (bug 122)
- Types don't have names any more, just write them on ostream directly llvm-svn: 14606
Diffstat (limited to 'llvm/lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r--llvm/lib/Bytecode/Writer/ConstantWriter.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
index 3234a35f588..029e6cc2b54 100644
--- a/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/llvm/lib/Bytecode/Writer/ConstantWriter.cpp
@@ -146,10 +146,6 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
output_vbr(cast<ConstantSInt>(CPV)->getValue(), Out);
break;
- case Type::TypeTyID: // Serialize type type
- assert(0 && "Types should not be in the Constant!");
- break;
-
case Type::ArrayTyID: {
const ConstantArray *CPA = cast<ConstantArray>(CPV);
assert(!CPA->isString() && "Constant strings should be handled specially!");
@@ -193,7 +189,7 @@ void BytecodeWriter::outputConstant(const Constant *CPV) {
case Type::LabelTyID:
default:
std::cerr << __FILE__ << ":" << __LINE__ << ": Don't know how to serialize"
- << " type '" << CPV->getType()->getName() << "'\n";
+ << " type '" << CPV->getType() << "'\n";
break;
}
return;
OpenPOWER on IntegriCloud