From 1e63b2bdc311ae1b5fcec26758964accdeb3377c Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Sat, 19 Sep 2015 21:42:52 +0000 Subject: Further simplify the interface of PCHContainerGenerator by dropping the const qualifier on the CI. NFC llvm-svn: 248101 --- clang/lib/Frontend/FrontendActions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Frontend/FrontendActions.cpp') diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index be4ec5b1232..6ba4b134c38 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -93,7 +93,7 @@ GeneratePCHAction::CreateASTConsumer(CompilerInstance &CI, StringRef InFile) { Consumers.push_back(llvm::make_unique( CI.getPreprocessor(), OutputFile, nullptr, Sysroot, Buffer)); Consumers.push_back(CI.getPCHContainerWriter().CreatePCHContainerGenerator( - CI.getDiagnostics(), CI, InFile, OutputFile, OS, Buffer)); + CI, InFile, OutputFile, OS, Buffer)); return llvm::make_unique(std::move(Consumers)); } @@ -138,7 +138,7 @@ GenerateModuleAction::CreateASTConsumer(CompilerInstance &CI, /*AllowASTWithErrors*/false, /*IncludeTimestamps*/+CI.getFrontendOpts().BuildingImplicitModule)); Consumers.push_back(CI.getPCHContainerWriter().CreatePCHContainerGenerator( - CI.getDiagnostics(), CI, InFile, OutputFile, OS, Buffer)); + CI, InFile, OutputFile, OS, Buffer)); return llvm::make_unique(std::move(Consumers)); } -- cgit v1.2.3