diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-25 18:26:30 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-08-25 18:26:30 +0000 |
commit | bd97f35339719480001ff96efb5785d9cfd29edf (patch) | |
tree | 15bf526c0b5db3531cab46d892f4a12cb8de8cb1 /clang/lib/Frontend/ASTUnit.cpp | |
parent | 084148fcc35d96afba07a8f12842bc80af778ece (diff) | |
download | bcm5719-llvm-bd97f35339719480001ff96efb5785d9cfd29edf.tar.gz bcm5719-llvm-bd97f35339719480001ff96efb5785d9cfd29edf.zip |
Refactor to remove the assumption that we know the name of the module we're emitting at the point when we create a PCHGenerator (with the C++ modules TS, we find that out part way through parsing the input).
llvm-svn: 279766
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
-rw-r--r-- | clang/lib/Frontend/ASTUnit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index 3a34f852d89..f66ff140aab 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -925,7 +925,7 @@ public: PrecompilePreambleConsumer(ASTUnit &Unit, PrecompilePreambleAction *Action, const Preprocessor &PP, StringRef isysroot, std::unique_ptr<raw_ostream> Out) - : PCHGenerator(PP, "", nullptr, isysroot, std::make_shared<PCHBuffer>(), + : PCHGenerator(PP, "", isysroot, std::make_shared<PCHBuffer>(), ArrayRef<llvm::IntrusiveRefCntPtr<ModuleFileExtension>>(), /*AllowASTWithErrors=*/true), Unit(Unit), Hash(Unit.getCurrentTopLevelHashValue()), Action(Action), |