summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/ASTUnit.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-08-25 18:26:30 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-08-25 18:26:30 +0000
commitbd97f35339719480001ff96efb5785d9cfd29edf (patch)
tree15bf526c0b5db3531cab46d892f4a12cb8de8cb1 /clang/lib/Frontend/ASTUnit.cpp
parent084148fcc35d96afba07a8f12842bc80af778ece (diff)
downloadbcm5719-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.cpp2
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),
OpenPOWER on IntegriCloud