summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-14 01:54:56 +0000
committerChris Lattner <sabre@nondot.org>2009-06-14 01:54:56 +0000
commit15ba94987aa1620a75e6766f022228bd48cacfdf (patch)
treebe5f07cfa86ef04eba08774981a9adcb87443ee7 /clang/lib/CodeGen/CodeGenModule.cpp
parent5abdec7978e984a2b9f4fe0067b3af3337ba6d9c (diff)
downloadbcm5719-llvm-15ba94987aa1620a75e6766f022228bd48cacfdf.tar.gz
bcm5719-llvm-15ba94987aa1620a75e6766f022228bd48cacfdf.zip
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. llvm-svn: 73319
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 16d0ec95825..82156e9ffa5 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -21,6 +21,7 @@
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/DeclCXX.h"
+#include "clang/Basic/Builtins.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h"
OpenPOWER on IntegriCloud