diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-16 16:18:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-16 16:18:48 +0000 |
commit | 4ef49c1d6ea51bd3acdea746f1826ba243f85aa8 (patch) | |
tree | 4ea841930f4f243c0f14c6248ec8e2d9e621cdb9 /clang/lib/Lex/Preprocessor.cpp | |
parent | 05a7dba3bd02c70afd02d0f32b42280472e0027a (diff) | |
download | bcm5719-llvm-4ef49c1d6ea51bd3acdea746f1826ba243f85aa8.tar.gz bcm5719-llvm-4ef49c1d6ea51bd3acdea746f1826ba243f85aa8.zip |
my refactoring of builtins changed target-specific builtins to only be
registered when PCH wasn't being used. We should always install (in BuiltinInfo)
information about target-specific builtins, but we shouldn't register any builtin
identifier infos. This fixes the build of apps that use PCH and target specific
builtins together.
llvm-svn: 73492
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 0a7d92eb83c..24ee5d8a8f9 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -51,7 +51,7 @@ Preprocessor::Preprocessor(Diagnostic &diags, const LangOptions &opts, IdentifierInfoLookup* IILookup) : Diags(&diags), Features(opts), Target(target),FileMgr(Headers.getFileMgr()), SourceMgr(SM), HeaderInfo(Headers), Identifiers(opts, IILookup), - CurPPLexer(0), CurDirLookup(0), Callbacks(0) { + BuiltinInfo(Target), CurPPLexer(0), CurDirLookup(0), Callbacks(0) { ScratchBuf = new ScratchBuffer(SourceMgr); CounterValue = 0; // __COUNTER__ starts at 0. |