diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/SubtargetFeature.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/SubtargetFeature.h b/include/llvm/MC/SubtargetFeature.h index d0735ccd9f..ad7fec53ac 100644 --- a/include/llvm/MC/SubtargetFeature.h +++ b/include/llvm/MC/SubtargetFeature.h @@ -101,6 +101,12 @@ public: /// Adds the default features for the specified target triple. void getDefaultSubtargetFeatures(const Triple& Triple); + + /// Find KV in array using binary search. + /// T should be either SubtargetFeatureKV or SubtargetInfoKV + template<typename T> + static const T *Find(StringRef Key, const T *Array, size_t Length, + const char* KeyType); }; } // End namespace llvm |