Fix these error messages to not mention PATH in cases where
authorDan Gohman <gohman@apple.com>
Fri, 29 Oct 2010 16:15:23 +0000 (16:15 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 29 Oct 2010 16:15:23 +0000 (16:15 +0000)
PATH isn't actually searched, and to not mention the executable
directory when it isn't actually searched.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117657 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/ToolRunner.cpp

index 36dbe144c1c5271f249250a6184dd7b69005e482..8d4935b558f7793be243d1d668ea628ba91d1d5b 100644 (file)
@@ -243,7 +243,7 @@ AbstractInterpreter *AbstractInterpreter::createLLI(const char *Argv0,
     return new LLI(LLIPath, ToolArgs);
   }
 
-  Message = "Cannot find `lli' in executable directory or PATH!\n";
+  Message = "Cannot find `lli' in executable directory!\n";
   return 0;
 }
 
@@ -343,7 +343,7 @@ AbstractInterpreter *AbstractInterpreter::createCustom(
   if (CmdPath.empty()) {
     Message = 
       std::string("Cannot find '") + Command + 
-      "' in executable directory or PATH!\n";
+      "' in PATH!\n";
     return 0;
   }
 
@@ -439,7 +439,7 @@ LLC *AbstractInterpreter::createLLC(const char *Argv0,
   std::string LLCPath =
     FindExecutable("llc", Argv0, (void *)(intptr_t)&createLLC).str();
   if (LLCPath.empty()) {
-    Message = "Cannot find `llc' in executable directory or PATH!\n";
+    Message = "Cannot find `llc' in executable directory!\n";
     return 0;
   }
 
@@ -531,7 +531,7 @@ AbstractInterpreter *AbstractInterpreter::createJIT(const char *Argv0,
     return new JIT(LLIPath, Args);
   }
 
-  Message = "Cannot find `lli' in executable directory or PATH!\n";
+  Message = "Cannot find `lli' in executable directory!\n";
   return 0;
 }
 
@@ -610,7 +610,7 @@ CBE *AbstractInterpreter::createCBE(const char *Argv0,
     FindExecutable("llc", Argv0, (void *)(intptr_t)&createCBE);
   if (LLCPath.isEmpty()) {
     Message =
-      "Cannot find `llc' in executable directory or PATH!\n";
+      "Cannot find `llc' in executable directory!\n";
     return 0;
   }
 
@@ -870,7 +870,7 @@ GCC *GCC::create(std::string &Message,
                  const std::vector<std::string> *Args) {
   sys::Path GCCPath = sys::Program::FindProgramByName(GCCBinary);
   if (GCCPath.isEmpty()) {
-    Message = "Cannot find `"+ GCCBinary +"' in executable directory or PATH!\n";
+    Message = "Cannot find `"+ GCCBinary +"' in PATH!\n";
     return 0;
   }