1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Clean stuff up.

Types are not named, they are described

llvm-svn: 433
This commit is contained in:
Chris Lattner 2001-09-07 16:27:25 +00:00
parent 63820f443d
commit 25101c9f38

View File

@ -80,12 +80,12 @@ inline ostream &operator<<(ostream &o, const ConstPoolVal *I) {
inline ostream &operator<<(ostream &o, const Type *T) {
if (!T) return o << "<null Type>";
return o << T->getName();
return o << T->getDescription();
}
inline ostream &operator<<(ostream &o, const Value *I) {
switch (I->getValueType()) {
case Value::TypeVal: return o << (const Type*)I;
case Value::TypeVal: return o << I->castTypeAsserting();
case Value::ConstantVal: WriteToAssembly((const ConstPoolVal*)I, o); break;
case Value::MethodArgumentVal: return o <<I->getType() << " " << I->getName();
case Value::InstructionVal: WriteToAssembly((const Instruction *)I, o); break;