summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2012-08-03 02:01:27 -0700
committerShih-wei Liao <sliao@google.com>2012-08-03 02:01:27 -0700
commit78f458bce9998570544356ed5b41afb0a8625cee (patch)
tree02ea1d8f7862b1823115b4a6fd33471ae3db857c
parent42552ec6168d994991696a04c1626ac91218a720 (diff)
downloadllvm-ndk-cc-78f458bce9998570544356ed5b41afb0a8625cee.tar.gz
Apply changes to migrate to CLANG-160673-20120724.
Change-Id: Iaae5454643a2871fbfa01bcbe52924891c4357d7
-rw-r--r--Android.mk2
-rw-r--r--Compiler.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index 0e28e75..c7be789 100644
--- a/Android.mk
+++ b/Android.mk
@@ -59,6 +59,7 @@ endif
TBLGEN_TABLES := \
AttrList.inc \
Attrs.inc \
+ CommentNodes.inc \
DeclNodes.inc \
DiagnosticCommonKinds.inc \
DiagnosticFrontendKinds.inc \
@@ -96,6 +97,7 @@ endif
TBLGEN_TABLES := \
AttrList.inc \
Attrs.inc \
+ CommentNodes.inc \
DeclNodes.inc \
DiagnosticCommonKinds.inc \
DiagnosticDriverKinds.inc \
diff --git a/Compiler.cpp b/Compiler.cpp
index f8bc250..6b5e0c8 100644
--- a/Compiler.cpp
+++ b/Compiler.cpp
@@ -117,7 +117,7 @@ void Compiler::createPreprocessor() {
mTarget.get());
llvm::OwningPtr<clang::CompilerInstance> Clang(new clang::CompilerInstance());
-
+
mPP.reset(new clang::Preprocessor(*mDiagnostics,
mLangOpts,
mTarget.get(),
@@ -185,7 +185,6 @@ void Compiler::injectPreDefined() {
void Compiler::init(const std::string &Triple, const std::string &CPU,
const std::vector<std::string> &Features, bool isCXX) {
mLangOpts.RTTI = 0; // Turn off the RTTI information support
- mLangOpts.NeXTRuntime = 0; // Turn off the NeXT runtime uses
mLangOpts.C99 = 1;
if (isCXX) {
mLangOpts.CPlusPlus = 1;