From ef875c228ae7484f7bc42511c9fb1e643fa7550d Mon Sep 17 00:00:00 2001 From: Andrzej Warzynski Date: Fri, 3 Jul 2020 15:44:06 +0100 Subject: [PATCH] [clang][NFC] Removed unused parameters in InitializeSourceManager --- clang/include/clang/Frontend/CompilerInstance.h | 5 +---- clang/lib/Frontend/CompilerInstance.cpp | 14 ++++++-------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/clang/include/clang/Frontend/CompilerInstance.h b/clang/include/clang/Frontend/CompilerInstance.h index ba9bd439c4a3..cb935becaef1 100644 --- a/clang/include/clang/Frontend/CompilerInstance.h +++ b/clang/include/clang/Frontend/CompilerInstance.h @@ -764,10 +764,7 @@ public: static bool InitializeSourceManager(const FrontendInputFile &Input, DiagnosticsEngine &Diags, FileManager &FileMgr, - SourceManager &SourceMgr, - HeaderSearch *HS, - DependencyOutputOptions &DepOpts, - const FrontendOptions &Opts); + SourceManager &SourceMgr); /// } diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 0140a756b7dd..9dc9c42297ed 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -815,17 +815,15 @@ std::unique_ptr CompilerInstance::createOutputFile( // Initialization Utilities bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input){ - return InitializeSourceManager( - Input, getDiagnostics(), getFileManager(), getSourceManager(), - hasPreprocessor() ? &getPreprocessor().getHeaderSearchInfo() : nullptr, - getDependencyOutputOpts(), getFrontendOpts()); + return InitializeSourceManager(Input, getDiagnostics(), getFileManager(), + getSourceManager()); } // static -bool CompilerInstance::InitializeSourceManager( - const FrontendInputFile &Input, DiagnosticsEngine &Diags, - FileManager &FileMgr, SourceManager &SourceMgr, HeaderSearch *HS, - DependencyOutputOptions &DepOpts, const FrontendOptions &Opts) { +bool CompilerInstance::InitializeSourceManager(const FrontendInputFile &Input, + DiagnosticsEngine &Diags, + FileManager &FileMgr, + SourceManager &SourceMgr) { SrcMgr::CharacteristicKind Kind = Input.getKind().getFormat() == InputKind::ModuleMap ? Input.isSystem() ? SrcMgr::C_System_ModuleMap