summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-04-16 21:03:30 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-04-16 21:03:30 +0000
commit29898f45657314c7fa7f61e8157a36c832015fcc (patch)
tree17d058d7bb5bc90342c1906e0dc6f01ffd7ff5c0 /clang/lib/Frontend/CompilerInstance.cpp
parent1e8ac36b605e90c46b8d445dc300456978f75e4d (diff)
downloadbcm5719-llvm-29898f45657314c7fa7f61e8157a36c832015fcc.tar.gz
bcm5719-llvm-29898f45657314c7fa7f61e8157a36c832015fcc.zip
objective-c modern translator: buildit objc bool
type for rewriter project will be BoolTy. // rdar://11231426. llvm-svn: 154861
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index cab6b90d0cd..803e418e241 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -651,6 +651,10 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
// created. This complexity should be lifted elsewhere.
getTarget().setForcedLangOptions(getLangOpts());
+ // rewriter project will change target built-in bool type from its default.
+ if (getFrontendOpts().ProgramAction == frontend::RewriteObjC)
+ getTarget().noSignedCharForObjCBool();
+
// Validate/process some options.
if (getHeaderSearchOpts().Verbose)
OS << "clang -cc1 version " CLANG_VERSION_STRING
OpenPOWER on IntegriCloud