diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-21 19:57:54 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-21 19:57:54 +0000 | 
| commit | e123fc8fd8677e4dc86f274cffd069e5d56f4a01 (patch) | |
| tree | 806fb806ca9ace304565efd09b494e81ac2aff6f /contrib/llvm/tools/clang/lib/Frontend/ChainedIncludesSource.cpp | |
| parent | 54db30ce18663e6c2991958f3b5d18362e8e93c4 (diff) | |
| parent | 2298981669bf3bd63335a4be179bc0f96823a8f4 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Frontend/ChainedIncludesSource.cpp')
| -rw-r--r-- | contrib/llvm/tools/clang/lib/Frontend/ChainedIncludesSource.cpp | 15 | 
1 files changed, 7 insertions, 8 deletions
diff --git a/contrib/llvm/tools/clang/lib/Frontend/ChainedIncludesSource.cpp b/contrib/llvm/tools/clang/lib/Frontend/ChainedIncludesSource.cpp index 1bfc25c4c778..48154ecf4742 100644 --- a/contrib/llvm/tools/clang/lib/Frontend/ChainedIncludesSource.cpp +++ b/contrib/llvm/tools/clang/lib/Frontend/ChainedIncludesSource.cpp @@ -1,9 +1,8 @@  //===- ChainedIncludesSource.cpp - Chained PCHs in Memory -------*- C++ -*-===//  // -//                     The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception  //  //===----------------------------------------------------------------------===//  // @@ -83,9 +82,9 @@ createASTReader(CompilerInstance &CI, StringRef pchFile,                  ASTDeserializationListener *deserialListener = nullptr) {    Preprocessor &PP = CI.getPreprocessor();    std::unique_ptr<ASTReader> Reader; -  Reader.reset(new ASTReader(PP, &CI.getASTContext(), +  Reader.reset(new ASTReader(PP, CI.getModuleCache(), &CI.getASTContext(),                               CI.getPCHContainerReader(), -                             /*Extensions=*/{ }, +                             /*Extensions=*/{},                               /*isysroot=*/"", /*DisableValidation=*/true));    for (unsigned ti = 0; ti < bufNames.size(); ++ti) {      StringRef sr(bufNames[ti]); @@ -160,8 +159,8 @@ IntrusiveRefCntPtr<ExternalSemaSource> clang::createChainedIncludesSource(      auto Buffer = std::make_shared<PCHBuffer>();      ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions;      auto consumer = llvm::make_unique<PCHGenerator>( -        Clang->getPreprocessor(), "-", /*isysroot=*/"", Buffer, -        Extensions, /*AllowASTWithErrors=*/true); +        Clang->getPreprocessor(), Clang->getModuleCache(), "-", /*isysroot=*/"", +        Buffer, Extensions, /*AllowASTWithErrors=*/true);      Clang->getASTContext().setASTMutationListener(                                              consumer->GetASTMutationListener());      Clang->setASTConsumer(std::move(consumer));  | 
