[llvm-commits] CVS: llvm/lib/Bytecode/Writer/ConstantWriter.cpp
LLVM
llvm at cs.uiuc.edu
Sun Jul 4 06:39:01 PDT 2004
Changes in directory llvm/lib/Bytecode/Writer:
ConstantWriter.cpp updated: 1.37 -> 1.38
---
Log message:
- Type::TypeTyID doesn't exist any more (bug 122: http://llvm.cs.uiuc.edu/PR122 )
- Types don't have names any more, just write them on ostream directly
---
Diffs of the changes: (+1 -5)
Index: llvm/lib/Bytecode/Writer/ConstantWriter.cpp
diff -u llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.37 llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.38
--- llvm/lib/Bytecode/Writer/ConstantWriter.cpp:1.37 Thu Jun 17 13:17:59 2004
+++ llvm/lib/Bytecode/Writer/ConstantWriter.cpp Sun Jul 4 06:37:54 2004
@@ -146,10 +146,6 @@
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 @@
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;
More information about the llvm-commits
mailing list