diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-11-05 12:37:41 -0500 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-12-09 14:44:31 -0800 |
commit | c3ff9939bf7efeb11da49f100a277b4d8bbeff9f (patch) | |
tree | 41ab08adcdeb4e745c2e7a2ddd9c3bc3e66eb920 /clang/lib/Frontend | |
parent | 4eedc2e3af3aa01279c5131b527e452c34dde953 (diff) | |
download | llvm-c3ff9939bf7efeb11da49f100a277b4d8bbeff9f.zip llvm-c3ff9939bf7efeb11da49f100a277b4d8bbeff9f.tar.gz llvm-c3ff9939bf7efeb11da49f100a277b4d8bbeff9f.tar.bz2 |
Remove RemappedFiles param from ASTUnit::LoadFromASTFile, NFC
This parameter is always set to `None`. Remove it.
Differential Revision: https://reviews.llvm.org/D90889
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r-- | clang/lib/Frontend/ASTUnit.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/Frontend/ASTUnit.cpp b/clang/lib/Frontend/ASTUnit.cpp index d9154e9..51851a5 100644 --- a/clang/lib/Frontend/ASTUnit.cpp +++ b/clang/lib/Frontend/ASTUnit.cpp @@ -758,9 +758,8 @@ std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile( const std::string &Filename, const PCHContainerReader &PCHContainerRdr, WhatToLoad ToLoad, IntrusiveRefCntPtr<DiagnosticsEngine> Diags, const FileSystemOptions &FileSystemOpts, bool UseDebugInfo, - bool OnlyLocalDecls, ArrayRef<RemappedFile> RemappedFiles, - CaptureDiagsKind CaptureDiagnostics, bool AllowASTWithCompilerErrors, - bool UserFilesAreVolatile) { + bool OnlyLocalDecls, CaptureDiagsKind CaptureDiagnostics, + bool AllowASTWithCompilerErrors, bool UserFilesAreVolatile) { std::unique_ptr<ASTUnit> AST(new ASTUnit(true)); // Recover resources if we crash before exiting this method. @@ -793,9 +792,6 @@ std::unique_ptr<ASTUnit> ASTUnit::LoadFromASTFile( /*Target=*/nullptr)); AST->PPOpts = std::make_shared<PreprocessorOptions>(); - for (const auto &RemappedFile : RemappedFiles) - AST->PPOpts->addRemappedFile(RemappedFile.first, RemappedFile.second); - // Gather Info for preprocessor construction later on. HeaderSearch &HeaderInfo = *AST->HeaderInfo; |