Lines Matching refs:OrigCI
145 static bool HasARCRuntime(CompilerInvocation &origCI) {
150 for (unsigned i = 0, e = origCI.getPreprocessorOpts().Macros.size();
152 StringRef define = origCI.getPreprocessorOpts().Macros[i].first;
153 bool isUndef = origCI.getPreprocessorOpts().Macros[i].second;
164 llvm::Triple triple(origCI.getTargetOpts().Triple);
181 CompilerInvocation *createInvocationForMigration(CompilerInvocation &origCI) {
183 CInvok.reset(new CompilerInvocation(origCI));
193 CInvok->getLangOpts().ObjCRuntimeHasWeak = HasARCRuntime(origCI);
216 bool arcmt::checkForManualIssues(CompilerInvocation &origCI,
221 if (!origCI.getLangOpts().ObjC1)
228 CInvok.reset(createInvocationForMigration(origCI));
262 emitPremigrationErrors(capturedDiags, origCI.getDiagnosticOpts(),
296 origCI.getLangOpts().ObjCAutoRefCount = false;
305 static bool applyTransforms(CompilerInvocation &origCI,
311 if (!origCI.getLangOpts().ObjC1)
315 CompilerInvocation CInvokForCheck(origCI);
320 CompilerInvocation CInvok(origCI);
339 origCI.getLangOpts().ObjCAutoRefCount = true;
344 origCI.getLangOpts().ObjCAutoRefCount = false;
349 bool arcmt::applyTransformations(CompilerInvocation &origCI,
352 return applyTransforms(origCI, Filename, Kind, DiagClient,
356 bool arcmt::migrateWithTemporaryFiles(CompilerInvocation &origCI,
363 return applyTransforms(origCI, Filename, Kind, DiagClient,
473 : OrigCI(CI), DiagClient(diagClient) {
485 CInvok.reset(createInvocationForMigration(OrigCI));