summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/Builtins.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-09-01 23:39:15 +0000
committerDouglas Gregor <dgregor@apple.com>2011-09-01 23:39:15 +0000
commit998b3d3e8528ebd9d2c5d78d3a82edd90a8953a4 (patch)
treeccd8215b16e0f4c088e7537c5e888af60a659805 /include/clang/Basic/Builtins.h
parentdb44a6b00768a14e8a4d388d67edef61a1ae2d63 (diff)
Allow the preprocessor to be constructed without performing target-
and language-specific initialization. Use this to allow ASTUnit to create a preprocessor object *before* loading the AST file. No actual functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138983 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Builtins.h')
-rw-r--r--include/clang/Basic/Builtins.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/Basic/Builtins.h b/include/clang/Basic/Builtins.h
index 1e16a0030a..fbf4ef417f 100644
--- a/include/clang/Basic/Builtins.h
+++ b/include/clang/Basic/Builtins.h
@@ -62,8 +62,11 @@ class Context {
const Info *TSRecords;
unsigned NumTSRecords;
public:
- Context(const TargetInfo &Target);
+ Context();
+ /// \brief Perform target-specific initialization
+ void InitializeTarget(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.