Generalize abstract interpreter interface to allow linking in an arbitrary number...
[oota-llvm.git] / tools / bugpoint / CodeGeneratorBug.cpp
index 66984694e381a86e5ada675158ac8eaaf6a4440f..b7757097019d083c83f904b451e8bf0664af0844 100644 (file)
@@ -225,8 +225,7 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs,
   }
 
   // Make a shared library
-  std::string SharedObject;
-  BD.compileSharedObject(SafeModuleBC, SharedObject);
+  std::string SharedObject = compileSharedObject(SafeModuleBC);
 
   delete SafeModule;
   delete TestModule;
@@ -258,8 +257,8 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs,
               << "  gcc -xc temporary.c -O2 -o " << SharedObject
 #if defined(sparc) || defined(__sparc__) || defined(__sparcv9)
               << " -G"            // Compile a shared library, `-G' for Sparc
-#else                             
-              << " -shared"      // `-shared' for Linux/X86, maybe others
+#else
+              << " -shared"       // `-shared' for Linux/X86, maybe others
 #endif
               << "\n";
   } else {