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/ChainedIncludesSource.cpp | |
parent | 084148fcc35d96afba07a8f12842bc80af778ece (diff) | |
download | llvm-bd97f35339719480001ff96efb5785d9cfd29edf.zip llvm-bd97f35339719480001ff96efb5785d9cfd29edf.tar.gz llvm-bd97f35339719480001ff96efb5785d9cfd29edf.tar.bz2 |
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/ChainedIncludesSource.cpp')
-rw-r--r-- | clang/lib/Frontend/ChainedIncludesSource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/ChainedIncludesSource.cpp b/clang/lib/Frontend/ChainedIncludesSource.cpp index 7687b24..c5b77ee 100644 --- a/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/clang/lib/Frontend/ChainedIncludesSource.cpp @@ -161,7 +161,7 @@ IntrusiveRefCntPtr<ExternalSemaSource> clang::createChainedIncludesSource( auto Buffer = std::make_shared<PCHBuffer>(); ArrayRef<llvm::IntrusiveRefCntPtr<ModuleFileExtension>> Extensions; auto consumer = llvm::make_unique<PCHGenerator>( - Clang->getPreprocessor(), "-", nullptr, /*isysroot=*/"", Buffer, + Clang->getPreprocessor(), "-", /*isysroot=*/"", Buffer, Extensions, /*AllowASTWithErrors=*/true); Clang->getASTContext().setASTMutationListener( consumer->GetASTMutationListener()); |