From 4d9aee36316ba214cc5f37187b7078d103957460 Mon Sep 17 00:00:00 2001 From: tomershafir Date: Thu, 13 Nov 2025 22:38:12 +0200 Subject: [PATCH] [llc] Remove unused GetOutputStream params --- llvm/tools/llc/llc.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp index 2147945d8a416..d23b4784d75b4 100644 --- a/llvm/tools/llc/llc.cpp +++ b/llvm/tools/llc/llc.cpp @@ -306,9 +306,7 @@ static int compileModule(char **argv, LLVMContext &Context, llvm_unreachable("reportError() should not return"); } -static std::unique_ptr GetOutputStream(const char *TargetName, - Triple::OSType OS, - const char *ProgName) { +static std::unique_ptr GetOutputStream(Triple::OSType OS) { // If we don't yet have an output filename, make one. if (OutputFilename.empty()) { if (InputFilename == "-") @@ -671,8 +669,7 @@ static int compileModule(char **argv, LLVMContext &Context, Target->Options.FloatABIType = codegen::getFloatABIForCalls(); // Figure out where we are going to send the output. - std::unique_ptr Out = - GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]); + std::unique_ptr Out = GetOutputStream(TheTriple.getOS()); if (!Out) return 1;