Skip to content

Commit ec3f364

Browse files
committed
[llc] Remove unused GetOutputStream params (llvm#167949)
(cherry-pick d68c71e)
1 parent fca6f57 commit ec3f364

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/tools/llc/llc.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,7 @@ static int compileModule(char **argv, LLVMContext &Context,
287287
llvm_unreachable("reportError() should not return");
288288
}
289289

290-
static std::unique_ptr<ToolOutputFile> GetOutputStream(const char *TargetName,
291-
Triple::OSType OS,
292-
const char *ProgName) {
290+
static std::unique_ptr<ToolOutputFile> GetOutputStream(Triple::OSType OS) {
293291
// If we don't yet have an output filename, make one.
294292
if (OutputFilename.empty()) {
295293
if (InputFilename == "-")
@@ -681,9 +679,9 @@ static int compileModule(char **argv, LLVMContext &Context,
681679
Target->Options.FloatABIType = codegen::getFloatABIForCalls();
682680

683681
// Figure out where we are going to send the output.
684-
std::unique_ptr<ToolOutputFile> Out =
685-
GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]);
686-
if (!Out) return 1;
682+
std::unique_ptr<ToolOutputFile> Out = GetOutputStream(TheTriple.getOS());
683+
if (!Out)
684+
return 1;
687685

688686
// Ensure the filename is passed down to CodeViewDebug.
689687
Target->Options.ObjectFilenameForDebug = Out->outputFilename();

0 commit comments

Comments
 (0)