[llvm-commits] CVS: llvm/tools/bugpoint/ExecutionDriver.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Apr 23 15:32:01 PDT 2003


Changes in directory llvm/tools/bugpoint:

ExecutionDriver.cpp updated: 1.2 -> 1.3

---
Log message:

Allow specifying an input file for the program being executed


---
Diffs of the changes:

Index: llvm/tools/bugpoint/ExecutionDriver.cpp
diff -u llvm/tools/bugpoint/ExecutionDriver.cpp:1.2 llvm/tools/bugpoint/ExecutionDriver.cpp:1.3
--- llvm/tools/bugpoint/ExecutionDriver.cpp:1.2	Mon Dec 23 18:44:34 2002
+++ llvm/tools/bugpoint/ExecutionDriver.cpp	Wed Apr 23 15:31:37 2003
@@ -34,6 +34,10 @@
 			    clEnumValN(RunLLC, "run-llc", "Compile with LLC"),
 			    clEnumValN(RunCBE, "run-cbe", "Compile with CBE"),
 			    0));
+
+  cl::opt<std::string>
+  InputFile("input", cl::init("/dev/null"),
+            cl::desc("Filename to pipe in as stdin (default: /dev/null)"));
 }
 
 /// AbstractInterpreter Class - Subclasses of this class are used to execute
@@ -86,7 +90,7 @@
   };
   
   return RunProgramWithTimeout(LLIPath, Args,
-			       "/dev/null", OutputFile, OutputFile);
+			       InputFile, OutputFile, OutputFile);
 }
 
 





More information about the llvm-commits mailing list