objective-c modern translator: buildit objc bool

type for rewriter project will be BoolTy.
// rdar://11231426. 

llvm-svn: 154861
This commit is contained in:
Fariborz Jahanian
2012-04-16 21:03:30 +00:00
parent 1e8ac36b60
commit 29898f4565
12 changed files with 39 additions and 37 deletions

View File

@@ -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