forked from OSchip/llvm-project
Update comments
Implement Value::dump here. llvm-svn: 2148
This commit is contained in:
parent
0d4858a4eb
commit
f7e7948f1e
|
@ -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 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
|
// TODO: print out the type name instead of the full type if a particular type
|
||||||
// is in the symbol table...
|
// is in the symbol table...
|
||||||
//
|
//
|
||||||
|
@ -31,6 +28,10 @@ using std::map;
|
||||||
using std::vector;
|
using std::vector;
|
||||||
using std::ostream;
|
using std::ostream;
|
||||||
|
|
||||||
|
void Value::dump() const {
|
||||||
|
std::cerr << this;
|
||||||
|
}
|
||||||
|
|
||||||
static const Module *getModuleFromVal(const Value *V) {
|
static const Module *getModuleFromVal(const Value *V) {
|
||||||
if (const FunctionArgument *MA = dyn_cast<const FunctionArgument>(V))
|
if (const FunctionArgument *MA = dyn_cast<const FunctionArgument>(V))
|
||||||
return MA->getParent() ? MA->getParent()->getParent() : 0;
|
return MA->getParent() ? MA->getParent()->getParent() : 0;
|
||||||
|
|
Loading…
Reference in New Issue