diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-09-18 22:10:59 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-09-18 22:10:59 +0000 |
commit | 0391406e9501d233b6a879c909790504194ca075 (patch) | |
tree | 70dbae9d87eaed69590d07cde98c8fec832c034e /clang/lib/Frontend/PCHContainerOperations.cpp | |
parent | e0e0796d83c3c5c15b90fe78d11352aa9cbc8ccc (diff) | |
download | bcm5719-llvm-0391406e9501d233b6a879c909790504194ca075.tar.gz bcm5719-llvm-0391406e9501d233b6a879c909790504194ca075.zip |
Simplify the interface of PCHContainerGenerator and friends
by passing in a CompilerInstance instead of all its individual members.
NFC.
llvm-svn: 248053
Diffstat (limited to 'clang/lib/Frontend/PCHContainerOperations.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHContainerOperations.cpp | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/clang/lib/Frontend/PCHContainerOperations.cpp b/clang/lib/Frontend/PCHContainerOperations.cpp index 5d73a86a00c..5cf8de44dca 100644 --- a/clang/lib/Frontend/PCHContainerOperations.cpp +++ b/clang/lib/Frontend/PCHContainerOperations.cpp @@ -27,13 +27,7 @@ class RawPCHContainerGenerator : public ASTConsumer { raw_pwrite_stream *OS; public: - RawPCHContainerGenerator(DiagnosticsEngine &Diags, - const HeaderSearchOptions &HSO, - const PreprocessorOptions &PPO, - const TargetOptions &TO, const LangOptions &LO, - const std::string &MainFileName, - const std::string &OutputFileName, - llvm::raw_pwrite_stream *OS, + RawPCHContainerGenerator(llvm::raw_pwrite_stream *OS, std::shared_ptr<PCHBuffer> Buffer) : Buffer(Buffer), OS(OS) {} @@ -54,13 +48,10 @@ public: } // anonymous namespace std::unique_ptr<ASTConsumer> RawPCHContainerWriter::CreatePCHContainerGenerator( - DiagnosticsEngine &Diags, const HeaderSearchOptions &HSO, - const PreprocessorOptions &PPO, const TargetOptions &TO, - const LangOptions &LO, const std::string &MainFileName, - const std::string &OutputFileName, llvm::raw_pwrite_stream *OS, - std::shared_ptr<PCHBuffer> Buffer) const { - return llvm::make_unique<RawPCHContainerGenerator>( - Diags, HSO, PPO, TO, LO, MainFileName, OutputFileName, OS, Buffer); + DiagnosticsEngine &Diags, const CompilerInstance &CI, + const std::string &MainFileName, const std::string &OutputFileName, + llvm::raw_pwrite_stream *OS, std::shared_ptr<PCHBuffer> Buffer) const { + return llvm::make_unique<RawPCHContainerGenerator>(OS, Buffer); } void RawPCHContainerReader::ExtractPCH( |