diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-14 01:54:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-14 01:54:56 +0000 |
commit | 1b63e4f732dbc73d90abf886b4d21f8e3a165f6d (patch) | |
tree | ceacec3ea792cf65e407e1c2988ef31a9d1bc359 /include/clang/Basic/Builtins.h | |
parent | 6b15cdc1312f8fc45c86ee75e2a85106700e97f6 (diff) |
Sink the BuiltinInfo object from ASTContext into the
preprocessor and initialize it early in clang-cc. This
ensures that __has_builtin works in all modes, not just
when ASTContext is around.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73319 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Builtins.h')
-rw-r--r-- | include/clang/Basic/Builtins.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h index a18faf688f..6463a4f6e5 100644 --- a/include/clang/Basic/Builtins.h +++ b/include/clang/Basic/Builtins.h @@ -55,14 +55,11 @@ class Context { public: Context() : TSRecords(0), NumTSRecords(0) {} - /// \brief Load all of the target builtins. This should be called - /// prior to initializing the builtin identifiers. - void InitializeTargetBuiltins(const TargetInfo &Target); - /// InitializeBuiltins - Mark the identifiers for all the builtins with their /// appropriate builtin ID # and mark any non-portable builtin identifiers as /// such. - void InitializeBuiltins(IdentifierTable &Table, bool NoBuiltins = false); + void InitializeBuiltins(IdentifierTable &Table, const TargetInfo &Target, + bool NoBuiltins = false); /// \brief Popular the vector with the names of all of the builtins. void GetBuiltinNames(llvm::SmallVectorImpl<const char *> &Names, |