From c994519230cc20cd43bade3443bb94357f9043cf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 7 Apr 2002 22:31:46 +0000 Subject: [PATCH] Update comments Implement Value::dump here. llvm-svn: 2148 --- lib/VMCore/AsmWriter.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index f92fac512ad..20ac49e4c9c 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/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(V)) return MA->getParent() ? MA->getParent()->getParent() : 0;