minor cleanups. Add provisions for a new standard BLOCKINFO_BLOCK
[oota-llvm.git] / tools / bugpoint / OptimizerDriver.cpp
index 8a19739e2852cf34da3d5a17f5ffd77a89cfab0f..210f348f3546700a12e1e4e04356c71173abaf92 100644 (file)
@@ -57,7 +57,7 @@ bool BugDriver::writeProgramToFile(const std::string &Filename,
   if (!Out.good()) return true;
   try {
     OStream L(Out);
-    WriteBytecodeToFile(M ? M : Program, L, /*compression=*/true);
+    WriteBytecodeToFile(M ? M : Program, L, /*compression=*/false);
   } catch (...) {
     return true;
   }
@@ -194,7 +194,8 @@ bool BugDriver::runPasses(const std::vector<const PassInfo*> &Passes,
     prog = sys::Program::FindProgramByName("valgrind");
   else
     prog = tool;
-  int result = sys::Program::ExecuteAndWait(prog,args,0,0,Timeout,&ErrMsg);
+  int result = sys::Program::ExecuteAndWait(prog, args, 0, 0,
+                                            Timeout, MemoryLimit, &ErrMsg);
 
   // If we are supposed to delete the bytecode file or if the passes crashed,
   // remove it now.  This may fail if the file was never created, but that's ok.