diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-07 22:31:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-07 22:31:46 +0000 |
commit | f7e7948f1ea8f9f21e9f8b4e9eb2ec6e1317ccff (patch) | |
tree | 897b8f4dbbf24505dd5cc0f868ef7f56bd75acc1 | |
parent | 0d4858a4eb2b68a0a46548f1ffcced6c6c62c352 (diff) | |
download | bcm5719-llvm-f7e7948f1ea8f9f21e9f8b4e9eb2ec6e1317ccff.tar.gz bcm5719-llvm-f7e7948f1ea8f9f21e9f8b4e9eb2ec6e1317ccff.zip |
Update comments
Implement Value::dump here.
llvm-svn: 2148
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index f92fac512ad..20ac49e4c9c 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1,10 +1,7 @@ -//===-- Writer.cpp - Library for Printing VM assembly files ------*- C++ -*--=// +//===-- AsmWriter.cpp - Printing LLVM as an assembly file -----------------===// // // This library implements the functionality defined in llvm/Assembly/Writer.h // -// This library uses the Analysis library to figure out offsets for -// variables in the method tables... -// // TODO: print out the type name instead of the full type if a particular type // is in the symbol table... // @@ -31,6 +28,10 @@ using std::map; using std::vector; using std::ostream; +void Value::dump() const { + std::cerr << this; +} + static const Module *getModuleFromVal(const Value *V) { if (const FunctionArgument *MA = dyn_cast<const FunctionArgument>(V)) return MA->getParent() ? MA->getParent()->getParent() : 0; |