forked from OSchip/llvm-project
[clang][NFC] Removed unused parameters in InitializeSourceManager
This commit is contained in:
parent
eb0e7acbd4
commit
ef875c228a
|
@ -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);
|
||||
|
||||
/// }
|
||||
|
||||
|
|
|
@ -815,17 +815,15 @@ std::unique_ptr<llvm::raw_pwrite_stream> 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
|
||||
|
|
Loading…
Reference in New Issue