summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-04-26 03:57:37 +0000
committerDouglas Gregor <dgregor@apple.com>2009-04-26 03:57:37 +0000
commit2ef5dc4fc663d9fad14645eac6faac34d872111e (patch)
tree040f60a48698adcab60bd5589d71781905c706f3 /clang/lib/AST
parent1d46a1f8a56717964b19504d13b63e21546149b9 (diff)
downloadbcm5719-llvm-2ef5dc4fc663d9fad14645eac6faac34d872111e.tar.gz
bcm5719-llvm-2ef5dc4fc663d9fad14645eac6faac34d872111e.zip
Make sure to pull in the target builtin records when initialize the AST context, even if we're not going to initialize the __builin_* identifiers
llvm-svn: 70111
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 3466d7040d4..95bb1ba04b8 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -41,6 +41,7 @@ ASTContext::ASTContext(const LangOptions& LOpts, SourceManager &SM,
if (size_reserve > 0) Types.reserve(size_reserve);
InitBuiltinTypes();
TUDecl = TranslationUnitDecl::Create(*this);
+ BuiltinInfo.InitializeTargetBuiltins(Target);
if (InitializeBuiltins)
this->InitializeBuiltins(idents);
}
@@ -94,7 +95,6 @@ ASTContext::~ASTContext() {
}
void ASTContext::InitializeBuiltins(IdentifierTable &idents) {
- BuiltinInfo.InitializeTargetBuiltins(Target);
BuiltinInfo.InitializeBuiltins(idents, LangOpts.NoBuiltin);
}
OpenPOWER on IntegriCloud