aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-07 22:31:46 +0000
committerChris Lattner <sabre@nondot.org>2002-04-07 22:31:46 +0000
commit8da78afce3609f8ac31bef9d1310744a47bbd0cc (patch)
treeab8707abb8a5be49201f978bb1c084f45753ab63 /lib/VMCore/AsmWriter.cpp
parent87182ae6baf28ca6da6ee4bc00cf1857f293acfe (diff)
downloadexternal_llvm-8da78afce3609f8ac31bef9d1310744a47bbd0cc.zip
external_llvm-8da78afce3609f8ac31bef9d1310744a47bbd0cc.tar.gz
external_llvm-8da78afce3609f8ac31bef9d1310744a47bbd0cc.tar.bz2
Update comments
Implement Value::dump here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index f92fac5..20ac49e 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<const FunctionArgument>(V))
return MA->getParent() ? MA->getParent()->getParent() : 0;