diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h index 6c7f8e73a8c..6ce3b92681e 100644 --- a/include/llvm/Assembly/Writer.h +++ b/include/llvm/Assembly/Writer.h @@ -89,21 +89,4 @@ inline ostream &operator<<(ostream &o, const Type *T) { return o << T->getDescription(); } -inline ostream &operator<<(ostream &o, const Value *I) { - switch (I->getValueType()) { - case Value::TypeVal: return o << I->castTypeAsserting(); - case Value::ConstantVal: WriteToAssembly((const ConstPoolVal*)I, o); break; - case Value::MethodArgumentVal: return o <getType() << " " << I->getName(); - case Value::InstructionVal: WriteToAssembly((const Instruction *)I, o); break; - case Value::BasicBlockVal: WriteToAssembly((const BasicBlock *)I, o); break; - case Value::MethodVal: WriteToAssembly((const Method *)I, o); break; - case Value::GlobalVal: WriteToAssembly((const GlobalVariable*)I,o);break; - case Value::ModuleVal: WriteToAssembly((const Module *)I, o); break; - default: return o << "getValueType() << ">"; - } - return o; -} - -void DebugValue(const Value *V); - #endif