*** empty log message ***
authorChris Lattner <sabre@nondot.org>
Wed, 10 Jul 2002 16:48:17 +0000 (16:48 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 10 Jul 2002 16:48:17 +0000 (16:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2852 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 9f826fbff3f5382a1086bca48008b28ad6b292d5..6806575b197733998bec628e1531392f132685cf 100644 (file)
@@ -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;
 }