From 29898f45657314c7fa7f61e8157a36c832015fcc Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Mon, 16 Apr 2012 21:03:30 +0000 Subject: objective-c modern translator: buildit objc bool type for rewriter project will be BoolTy. // rdar://11231426. llvm-svn: 154861 --- clang/lib/Frontend/CompilerInstance.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/lib/Frontend/CompilerInstance.cpp') 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 -- cgit v1.2.3