From 62a5ff573b2d72d7a51c4aebd0def311ecbc746d Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 29 Oct 2010 16:15:23 +0000 Subject: Fix these error messages to not mention PATH in cases where 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 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/bugpoint') diff --git a/tools/bugpoint/ToolRunner.cpp b/tools/bugpoint/ToolRunner.cpp index 36dbe144c1..8d4935b558 100644 --- a/tools/bugpoint/ToolRunner.cpp +++ b/tools/bugpoint/ToolRunner.cpp @@ -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 *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; } -- cgit v1.2.3