Skip to content

Commit d63053d

Browse files
committed
[Gardening] Remove more unused parameters
1 parent 5c746fa commit d63053d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,7 @@ getFileOutputStream(StringRef OutputFilename, ASTContext &Ctx) {
482482
}
483483

484484
/// Writes the Syntax tree to the given file
485-
static bool emitSyntax(SourceFile *SF, LangOptions &LangOpts,
486-
SourceManager &SM, StringRef OutputFilename) {
485+
static bool emitSyntax(SourceFile *SF, StringRef OutputFilename) {
487486
auto bufferID = SF->getBufferID();
488487
assert(bufferID && "frontend should have a buffer ID "
489488
"for the main source file");
@@ -920,7 +919,6 @@ static Optional<bool> dumpASTIfNeeded(CompilerInvocation &Invocation,
920919

921920
case FrontendOptions::ActionType::EmitSyntax:
922921
emitSyntax(getPrimaryOrMainSourceFile(Invocation, Instance),
923-
Invocation.getLangOptions(), Instance.getSourceMgr(),
924922
opts.InputsAndOutputs.getSingleOutputFilename());
925923
break;
926924

0 commit comments

Comments
 (0)