Home | History | Annotate | Download | only in Frontend

Lines Matching refs:CI

33 ASTConsumer *InitOnlyAction::CreateASTConsumer(CompilerInstance &CI,
45 ASTConsumer *ASTPrintAction::CreateASTConsumer(CompilerInstance &CI,
47 if (raw_ostream *OS = CI.createDefaultOutputFile(false, InFile))
52 ASTConsumer *ASTDumpAction::CreateASTConsumer(CompilerInstance &CI,
57 ASTConsumer *ASTDumpXMLAction::CreateASTConsumer(CompilerInstance &CI,
60 if (CI.getFrontendOpts().OutputFile.empty())
63 OS = CI.createDefaultOutputFile(false, InFile);
68 ASTConsumer *ASTViewAction::CreateASTConsumer(CompilerInstance &CI,
73 ASTConsumer *DeclContextPrintAction::CreateASTConsumer(CompilerInstance &CI,
78 ASTConsumer *GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI,
83 if (ComputeASTConsumerArguments(CI, InFile, Sysroot, OutputFile, OS))
86 if (!CI.getFrontendOpts().RelocatablePCH)
88 return new PCHGenerator(CI.getPreprocessor(), OutputFile, MakeModule,
92 bool GeneratePCHAction::ComputeASTConsumerArguments(CompilerInstance &CI,
97 Sysroot = CI.getHeaderSearchOpts().Sysroot;
98 if (CI.getFrontendOpts().RelocatablePCH && Sysroot.empty()) {
99 CI.getDiagnostics().Report(diag::err_relocatable_without_isysroot);
106 OS = CI.createOutputFile(CI.getFrontendOpts().OutputFile, /*Binary=*/true,
112 OutputFile = CI.getFrontendOpts().OutputFile;
116 ASTConsumer *SyntaxOnlyAction::CreateASTConsumer(CompilerInstance &CI,
156 CompilerInstance &CI = getCompilerInstance();
157 if (CI.getFrontendOpts().OutputFile.empty() ||
158 CI.getFrontendOpts().OutputFile == "-") {
164 CI.createDefaultOutputFile(true, getCurrentFile());
167 CacheTokens(CI.getPreprocessor(), OS);
185 CompilerInstance &CI = getCompilerInstance();
201 const SourceManager& SM = CI.getSourceManager();
227 raw_ostream *OS = CI.createDefaultOutputFile(BinaryMode, getCurrentFile());
230 DoPrintPreprocessedInput(CI.getPreprocessor(), OS,
231 CI.getPreprocessorOutputOpts());
256 CompilerInstance &CI = getCompilerInstance();
258 = CI.getFileManager().getBufferForFile(getCurrentFile());
260 unsigned Preamble = Lexer::ComputePreamble(Buffer, CI.getLangOpts()).first;