mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
For PR351:
Adjust to interface change for FindExecutable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -481,11 +481,11 @@ int main(int argc, char **argv, char **envp) {
|
||||
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
|
||||
|
||||
// Determine the locations of the llc and gcc programs.
|
||||
std::string llc = FindExecutable("llc", argv[0]);
|
||||
std::string gcc = FindExecutable("gcc", argv[0]);
|
||||
std::string llc = FindExecutable("llc", argv[0]).toString();
|
||||
if (llc.empty())
|
||||
return PrintAndReturn("Failed to find llc");
|
||||
|
||||
std::string gcc = FindExecutable("gcc", argv[0]).toString();
|
||||
if (gcc.empty())
|
||||
return PrintAndReturn("Failed to find gcc");
|
||||
|
||||
@@ -506,10 +506,11 @@ int main(int argc, char **argv, char **envp) {
|
||||
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
|
||||
|
||||
// Determine the locations of the llc and gcc programs.
|
||||
std::string llc = FindExecutable("llc", argv[0]);
|
||||
std::string gcc = FindExecutable("gcc", argv[0]);
|
||||
std::string llc = FindExecutable("llc", argv[0]).toString();
|
||||
if (llc.empty())
|
||||
return PrintAndReturn("Failed to find llc");
|
||||
|
||||
std::string gcc = FindExecutable("gcc", argv[0]).toString();
|
||||
if (gcc.empty())
|
||||
return PrintAndReturn("Failed to find gcc");
|
||||
|
||||
|
Reference in New Issue
Block a user