diff options
author | Daniel Grumberg <dgrumberg@apple.com> | 2022-11-07 13:33:59 +0000 |
---|---|---|
committer | Daniel Grumberg <dgrumberg@apple.com> | 2022-11-07 13:33:59 +0000 |
commit | 39dbfa72aaebe64e913d65f1eeab48c5f33b8010 (patch) | |
tree | 539b0dafd8c1bb5befc17aeeb2c00dc85a063429 /clang/lib/ExtractAPI/API.cpp | |
parent | f63db9159bbbb0db98e13cb4440fdaa5c40e219b (diff) | |
download | llvm-39dbfa72aaebe64e913d65f1eeab48c5f33b8010.zip llvm-39dbfa72aaebe64e913d65f1eeab48c5f33b8010.tar.gz llvm-39dbfa72aaebe64e913d65f1eeab48c5f33b8010.tar.bz2 |
Revert "Only add targetFallback if target is not in defined in current product"
This was an accidental addition of a non-reviewed change.
This reverts commit f63db9159bbbb0db98e13cb4440fdaa5c40e219b.
Diffstat (limited to 'clang/lib/ExtractAPI/API.cpp')
-rw-r--r-- | clang/lib/ExtractAPI/API.cpp | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/clang/lib/ExtractAPI/API.cpp b/clang/lib/ExtractAPI/API.cpp index 4832202..8ab03a8 100644 --- a/clang/lib/ExtractAPI/API.cpp +++ b/clang/lib/ExtractAPI/API.cpp @@ -197,39 +197,6 @@ TypedefRecord *APISet::addTypedef(StringRef Name, StringRef USR, Comment, Declaration, SubHeading, UnderlyingType); } -template <class RecordMap> -static APIRecord *getSymbolInRecordMapForUSR(StringRef USR, - const RecordMap &Records) { - auto It = Records.find(USR); - return (It != Records.end() ? It->second.get() : nullptr); -} - -APIRecord *APISet::getSymbolForUSR(StringRef USR) const { - if (USR.empty()) - return nullptr; - if (auto *Record = getSymbolInRecordMapForUSR(USR, ObjCProtocols)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, ObjCInterfaces)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, ObjCCategories)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, ObjCCategories)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, Structs)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, Enums)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, Typedefs)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, GlobalFunctions)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, GlobalVariables)) - return Record; - if (auto *Record = getSymbolInRecordMapForUSR(USR, Macros)) - return Record; - return nullptr; -} - StringRef APISet::recordUSR(const Decl *D) { SmallString<128> USR; index::generateUSRForDecl(D, USR); |