llvm.org GIT mirror llvm / 82f3d1c
[opt] Report if the provided architecture is invalid. Partly addresses PR15026. There are a few tests that passed in invalid architectures, which are fixed in: rL355349 and D58931 Reviewers: echristo, efriedma, rengolin, atrick Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D58933 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355455 91177308-0d34-0410-b5e6-96231b3b80d8 Florian Hahn 5 months ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
638638 CPUStr = getCPUStr();
639639 FeaturesStr = getFeaturesStr();
640640 Machine = GetTargetMachine(ModuleTriple, CPUStr, FeaturesStr, Options);
641 } else if (ModuleTriple.getArchName() != "unknown" &&
642 ModuleTriple.getArchName() != "") {
643 errs() << argv[0] << ": unrecognized architecture '"
644 << ModuleTriple.getArchName() << "' provided.\n";
645 return 1;
641646 }
642647
643648 std::unique_ptr TM(Machine);