diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-29 23:23:46 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2017-06-29 23:23:46 +0000 |
commit | dbafb6c3384301f6217b6ad851eceae3a363c243 (patch) | |
tree | 33286187a42aa672a0b33e1a4a1fa9ef6d8e4083 /clang/tools/c-index-test | |
parent | d676ab13540473bdb15c2d204e4cd84bf1fcea93 (diff) | |
download | bcm5719-llvm-dbafb6c3384301f6217b6ad851eceae3a363c243.tar.gz bcm5719-llvm-dbafb6c3384301f6217b6ad851eceae3a363c243.zip |
Teach ASTReader how to read only the Preprocessor state from an AST file, not the ASTContext state.
We use this when running a preprocessor-only action on an AST file in order to
avoid paying the runtime cost of loading the extra information.
llvm-svn: 306760
Diffstat (limited to 'clang/tools/c-index-test')
-rw-r--r-- | clang/tools/c-index-test/core_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/core_main.cpp b/clang/tools/c-index-test/core_main.cpp index 4f2c3cb34a9..c255f54ba68 100644 --- a/clang/tools/c-index-test/core_main.cpp +++ b/clang/tools/c-index-test/core_main.cpp @@ -217,7 +217,7 @@ static bool printSourceSymbolsFromModule(StringRef modulePath, IntrusiveRefCntPtr<DiagnosticsEngine> Diags = CompilerInstance::createDiagnostics(new DiagnosticOptions()); std::unique_ptr<ASTUnit> AU = ASTUnit::LoadFromASTFile( - modulePath, *pchRdr, Diags, + modulePath, *pchRdr, ASTUnit::LoadASTOnly, Diags, FileSystemOpts, /*UseDebugInfo=*/false, /*OnlyLocalDecls=*/true, None, /*CaptureDiagnostics=*/false, |