summaryrefslogtreecommitdiff
path: root/include/llvm/Assembly
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-09-18 12:43:15 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-09-18 12:43:15 +0000
commit8f3f5a87f941cb53892a76f9aa67703156e11df1 (patch)
tree38a5483a8db92101914044c403ddc721fb19f813 /include/llvm/Assembly
parent4bc86976bb14ce66b734a534351a4e9fb027d17d (diff)
downloadllvm-8f3f5a87f941cb53892a76f9aa67703156e11df1.tar.gz
llvm-8f3f5a87f941cb53892a76f9aa67703156e11df1.tar.bz2
llvm-8f3f5a87f941cb53892a76f9aa67703156e11df1.tar.xz
Moved debugging interfaces for class Value to Value.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly')
-rw-r--r--include/llvm/Assembly/Writer.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h
index 6c7f8e73a8..6ce3b92681 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 <<I->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 << "<unknown value type: " << I->getValueType() << ">";
- }
- return o;
-}
-
-void DebugValue(const Value *V);
-
#endif