Skip to content

Commit d68c71e

Browse files
authored
[llc] Remove unused GetOutputStream params (llvm#167949)
1 parent 8240552 commit d68c71e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

llvm/tools/llc/llc.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,7 @@ static int compileModule(char **argv, LLVMContext &Context,
306306
llvm_unreachable("reportError() should not return");
307307
}
308308

309-
static std::unique_ptr<ToolOutputFile> GetOutputStream(const char *TargetName,
310-
Triple::OSType OS,
311-
const char *ProgName) {
309+
static std::unique_ptr<ToolOutputFile> GetOutputStream(Triple::OSType OS) {
312310
// If we don't yet have an output filename, make one.
313311
if (OutputFilename.empty()) {
314312
if (InputFilename == "-")
@@ -671,8 +669,7 @@ static int compileModule(char **argv, LLVMContext &Context,
671669
Target->Options.FloatABIType = codegen::getFloatABIForCalls();
672670

673671
// Figure out where we are going to send the output.
674-
std::unique_ptr<ToolOutputFile> Out =
675-
GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]);
672+
std::unique_ptr<ToolOutputFile> Out = GetOutputStream(TheTriple.getOS());
676673
if (!Out)
677674
return 1;
678675

0 commit comments

Comments
 (0)