- if (F == Hi || StringRef(F->Key) != Key) {
- // If not yet reported, report now
- KeyWithType current(KeyType, Key);
- if(!reportedAsUnrecognized.count(current)) {
- SmallString<1024> storage;
- StringRef message = ("'" + Key +
- "' is not a recognized " + KeyType +
- " for this target (ignoring " + KeyType +
- ")").toStringRef(storage);
- SMDiagnostic(StringRef(), SourceMgr::DK_Warning, message)
- .print(0, errs());
- reportedAsUnrecognized.insert(current);
- }
- return NULL;
- }