mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-27 15:29:51 +00:00
Don't print an error message when looking up the scheduling model if user specified -mcpu=help.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d148e322a9
commit
0a4630d104
@ -93,9 +93,10 @@ MCSubtargetInfo::getSchedModelForCPU(StringRef CPU) const {
|
|||||||
const SubtargetInfoKV *Found =
|
const SubtargetInfoKV *Found =
|
||||||
std::lower_bound(ProcSchedModels, ProcSchedModels+NumProcs, CPU);
|
std::lower_bound(ProcSchedModels, ProcSchedModels+NumProcs, CPU);
|
||||||
if (Found == ProcSchedModels+NumProcs || StringRef(Found->Key) != CPU) {
|
if (Found == ProcSchedModels+NumProcs || StringRef(Found->Key) != CPU) {
|
||||||
errs() << "'" << CPU
|
if (CPU != "help") // Don't error if the user asked for help.
|
||||||
<< "' is not a recognized processor for this target"
|
errs() << "'" << CPU
|
||||||
<< " (ignoring processor)\n";
|
<< "' is not a recognized processor for this target"
|
||||||
|
<< " (ignoring processor)\n";
|
||||||
return MCSchedModel::GetDefaultSchedModel();
|
return MCSchedModel::GetDefaultSchedModel();
|
||||||
}
|
}
|
||||||
assert(Found->Value && "Missing processor SchedModel value");
|
assert(Found->Value && "Missing processor SchedModel value");
|
||||||
|
Loading…
Reference in New Issue
Block a user