mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 23:29:22 +00:00
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
This commit is contained in:
parent
e829781093
commit
62a5ff573b
@ -243,7 +243,7 @@ AbstractInterpreter *AbstractInterpreter::createLLI(const char *Argv0,
|
|||||||
return new LLI(LLIPath, ToolArgs);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ AbstractInterpreter *AbstractInterpreter::createCustom(
|
|||||||
if (CmdPath.empty()) {
|
if (CmdPath.empty()) {
|
||||||
Message =
|
Message =
|
||||||
std::string("Cannot find '") + Command +
|
std::string("Cannot find '") + Command +
|
||||||
"' in executable directory or PATH!\n";
|
"' in PATH!\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -439,7 +439,7 @@ LLC *AbstractInterpreter::createLLC(const char *Argv0,
|
|||||||
std::string LLCPath =
|
std::string LLCPath =
|
||||||
FindExecutable("llc", Argv0, (void *)(intptr_t)&createLLC).str();
|
FindExecutable("llc", Argv0, (void *)(intptr_t)&createLLC).str();
|
||||||
if (LLCPath.empty()) {
|
if (LLCPath.empty()) {
|
||||||
Message = "Cannot find `llc' in executable directory or PATH!\n";
|
Message = "Cannot find `llc' in executable directory!\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -531,7 +531,7 @@ AbstractInterpreter *AbstractInterpreter::createJIT(const char *Argv0,
|
|||||||
return new JIT(LLIPath, Args);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -610,7 +610,7 @@ CBE *AbstractInterpreter::createCBE(const char *Argv0,
|
|||||||
FindExecutable("llc", Argv0, (void *)(intptr_t)&createCBE);
|
FindExecutable("llc", Argv0, (void *)(intptr_t)&createCBE);
|
||||||
if (LLCPath.isEmpty()) {
|
if (LLCPath.isEmpty()) {
|
||||||
Message =
|
Message =
|
||||||
"Cannot find `llc' in executable directory or PATH!\n";
|
"Cannot find `llc' in executable directory!\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -870,7 +870,7 @@ GCC *GCC::create(std::string &Message,
|
|||||||
const std::vector<std::string> *Args) {
|
const std::vector<std::string> *Args) {
|
||||||
sys::Path GCCPath = sys::Program::FindProgramByName(GCCBinary);
|
sys::Path GCCPath = sys::Program::FindProgramByName(GCCBinary);
|
||||||
if (GCCPath.isEmpty()) {
|
if (GCCPath.isEmpty()) {
|
||||||
Message = "Cannot find `"+ GCCBinary +"' in executable directory or PATH!\n";
|
Message = "Cannot find `"+ GCCBinary +"' in PATH!\n";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user