diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-07-10 16:48:17 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-07-10 16:48:17 +0000 | 
| commit | 5a9f63ef4e1211e91636ce99be4c334e17361c06 (patch) | |
| tree | 44029cc182fdcc5d30f3dbf8441f26c7a261a860 /llvm/lib | |
| parent | fd5e6e0fb837588f63b400f160f3c27902a12327 (diff) | |
| download | bcm5719-llvm-5a9f63ef4e1211e91636ce99be4c334e17361c06.tar.gz bcm5719-llvm-5a9f63ef4e1211e91636ce99be4c334e17361c06.zip  | |
*** empty log message ***
llvm-svn: 2852
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 9f826fbff3f..6806575b197 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -375,17 +375,17 @@ static void WriteAsOperandInternal(ostream &Out, const Value *V, bool PrintName,  // whole instruction that generated it.  //  ostream &WriteAsOperand(ostream &Out, const Value *V, bool PrintType,  -			bool PrintName, SlotCalculator *Table) { +			bool PrintName, const Module *Context) {    map<const Type *, string> TypeNames; -  const Module *M = getModuleFromVal(V); +  if (Context == 0) Context = getModuleFromVal(V); -  if (M && M->hasSymbolTable()) -    fillTypeNameTable(M, TypeNames); +  if (Context && Context->hasSymbolTable()) +    fillTypeNameTable(Context, TypeNames);    if (PrintType)      printTypeInt(Out, V->getType(), TypeNames); -  WriteAsOperandInternal(Out, V, PrintName, TypeNames, Table); +  WriteAsOperandInternal(Out, V, PrintName, TypeNames, 0);    return Out;  }  | 

