mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Remove FindProgramByName. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -328,9 +328,11 @@ static bool printSymbolizedStackTrace(void **StackTrace, int Depth, FILE *FD) {
|
||||
// FIXME: Subtract necessary number from StackTrace entries to turn return addresses
|
||||
// into actual instruction addresses.
|
||||
// Use llvm-symbolizer tool to symbolize the stack traces.
|
||||
std::string LLVMSymbolizerPath = sys::FindProgramByName("llvm-symbolizer");
|
||||
if (LLVMSymbolizerPath.empty())
|
||||
ErrorOr<std::string> LLVMSymbolizerPathOrErr =
|
||||
sys::findProgramByName("llvm-symbolizer");
|
||||
if (!LLVMSymbolizerPathOrErr)
|
||||
return false;
|
||||
const std::string &LLVMSymbolizerPath = *LLVMSymbolizerPathOrErr;
|
||||
// We don't know argv0 or the address of main() at this point, but try
|
||||
// to guess it anyway (it's possible on some platforms).
|
||||
std::string MainExecutableName = sys::fs::getMainExecutable(nullptr, nullptr);
|
||||
|
Reference in New Issue
Block a user