[llvm-commits] CVS: llvm/lib/Support/ToolRunner.cpp

Reid Spencer reid at x10sys.com
Mon Dec 13 15:43:55 PST 2004



Changes in directory llvm/lib/Support:

ToolRunner.cpp updated: 1.33 -> 1.34
---
Log message:

For PR351: http://llvm.cs.uiuc.edu/PR351 :
Adjust to changes in the interface of FindExecutable, getting ToolRunner
ready for bigger things to come.


---
Diffs of the changes:  (+5 -5)

Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.33 llvm/lib/Support/ToolRunner.cpp:1.34
--- llvm/lib/Support/ToolRunner.cpp:1.33	Mon Nov 29 06:40:21 2004
+++ llvm/lib/Support/ToolRunner.cpp	Mon Dec 13 17:43:44 2004
@@ -109,7 +109,7 @@
 AbstractInterpreter *AbstractInterpreter::createLLI(const std::string &ProgPath,
                                                     std::string &Message,
                                      const std::vector<std::string> *ToolArgs) {
-  std::string LLIPath = FindExecutable("lli", ProgPath);
+  std::string LLIPath = FindExecutable("lli", ProgPath).toString();
   if (!LLIPath.empty()) {
     Message = "Found lli: " + LLIPath + "\n";
     return new LLI(LLIPath, ToolArgs);
@@ -175,7 +175,7 @@
 LLC *AbstractInterpreter::createLLC(const std::string &ProgramPath,
                                     std::string &Message,
                                     const std::vector<std::string> *Args) {
-  std::string LLCPath = FindExecutable("llc", ProgramPath);
+  std::string LLCPath = FindExecutable("llc", ProgramPath).toString();
   if (LLCPath.empty()) {
     Message = "Cannot find `llc' in executable directory or PATH!\n";
     return 0;
@@ -253,7 +253,7 @@
 ///
 AbstractInterpreter *AbstractInterpreter::createJIT(const std::string &ProgPath,
                    std::string &Message, const std::vector<std::string> *Args) {
-  std::string LLIPath = FindExecutable("lli", ProgPath);
+  std::string LLIPath = FindExecutable("lli", ProgPath).toString();
   if (!LLIPath.empty()) {
     Message = "Found lli: " + LLIPath + "\n";
     return new JIT(LLIPath, Args);
@@ -317,7 +317,7 @@
 CBE *AbstractInterpreter::createCBE(const std::string &ProgramPath,
                                     std::string &Message,
                                     const std::vector<std::string> *Args) {
-  std::string LLCPath = FindExecutable("llc", ProgramPath);
+  std::string LLCPath = FindExecutable("llc", ProgramPath).toString();
   if (LLCPath.empty()) {
     Message = 
       "Cannot find `llc' in executable directory or PATH!\n";
@@ -434,7 +434,7 @@
 /// create - Try to find the `gcc' executable
 ///
 GCC *GCC::create(const std::string &ProgramPath, std::string &Message) {
-  std::string GCCPath = FindExecutable("gcc", ProgramPath);
+  std::string GCCPath = FindExecutable("gcc", ProgramPath).toString();
   if (GCCPath.empty()) {
     Message = "Cannot find `gcc' in executable directory or PATH!\n";
     return 0;






More information about the llvm-commits mailing list