diff options
author | Eric Christopher <echristo@gmail.com> | 2015-08-06 22:11:54 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-08-06 22:11:54 +0000 |
commit | 1235e5421563217713beb9d68f29a085cad25c40 (patch) | |
tree | 8dd974bf552b98d0eed10cb748707003d186efeb /include/clang/Basic/Builtins.h | |
parent | d11d422a37f64d7192e8c72abfe749cb11bfc9fa (diff) |
Continue the work from r243908 by adding a Features field to Builtin::Info
so that we can populate it on a per-target basis with required features.
Future commits will start using this information for warnings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@244286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Builtins.h')
-rw-r--r-- | include/clang/Basic/Builtins.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h index c5cf10ccf0..554143d6be 100644 --- a/include/clang/Basic/Builtins.h +++ b/include/clang/Basic/Builtins.h @@ -51,6 +51,7 @@ enum ID { struct Info { const char *Name, *Type, *Attributes, *HeaderName; LanguageID Langs; + const char *Features; }; /// \brief Holds information about both target-independent and @@ -166,6 +167,10 @@ public: return strchr(getRecord(ID).Attributes, 'e') != nullptr; } + const char *getRequiredFeatures(unsigned ID) const { + return getRecord(ID).Features; + } + private: const Info &getRecord(unsigned ID) const; |