mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-03 13:51:39 +00:00
FuzzMutate: Fix arch parsing in FuzzerCLI
The right way to parse arch names is by creating a triple. This was using getArchTypeForLLVMName before, which doesn't really do the right thing here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315965 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d8da420012
commit
6ec40b1040
@ -47,7 +47,7 @@ void llvm::handleExecNameEncodedBEOpts(StringRef ExecName) {
|
|||||||
Args.push_back("-O0");
|
Args.push_back("-O0");
|
||||||
} else if (Opt.startswith("O")) {
|
} else if (Opt.startswith("O")) {
|
||||||
Args.push_back("-" + Opt.str());
|
Args.push_back("-" + Opt.str());
|
||||||
} else if (Triple::getArchTypeForLLVMName(Opt)) {
|
} else if (Triple(Opt).getArch()) {
|
||||||
Args.push_back("-mtriple=" + Opt.str());
|
Args.push_back("-mtriple=" + Opt.str());
|
||||||
} else {
|
} else {
|
||||||
errs() << ExecName << ": Unknown option: " << Opt << ".\n";
|
errs() << ExecName << ": Unknown option: " << Opt << ".\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user