From 5e394ff01b5da38c5f5c83d0faf45aebea743b85 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 4 Jul 2004 11:37:54 +0000 Subject: [PATCH] - 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 --- lib/Bytecode/Writer/ConstantWriter.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp index 3234a35f588..029e6cc2b54 100644 --- a/lib/Bytecode/Writer/ConstantWriter.cpp +++ b/lib/Bytecode/Writer/ConstantWriter.cpp @@ -146,10 +146,6 @@ void BytecodeWriter::outputConstant(const Constant *CPV) { output_vbr(cast(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(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; -- 2.34.1