[llvm] d68c71e - [llc] Remove unused GetOutputStream params (#167949)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 16 00:44:33 PST 2025


Author: Tomer Shafir
Date: 2025-11-16T10:44:29+02:00
New Revision: d68c71e41b7047cdc5838d87ebd5073f7c402298

URL: https://github.com/llvm/llvm-project/commit/d68c71e41b7047cdc5838d87ebd5073f7c402298
DIFF: https://github.com/llvm/llvm-project/commit/d68c71e41b7047cdc5838d87ebd5073f7c402298.diff

LOG: [llc] Remove unused GetOutputStream params (#167949)

Added: 
    

Modified: 
    llvm/tools/llc/llc.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llc/llc.cpp b/llvm/tools/llc/llc.cpp
index e883142caf948..ce1ce5d68c137 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<ToolOutputFile> GetOutputStream(const char *TargetName,
-                                                       Triple::OSType OS,
-                                                       const char *ProgName) {
+static std::unique_ptr<ToolOutputFile> 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<ToolOutputFile> Out =
-      GetOutputStream(TheTarget->getName(), TheTriple.getOS(), argv[0]);
+  std::unique_ptr<ToolOutputFile> Out = GetOutputStream(TheTriple.getOS());
   if (!Out)
     return 1;
 


        


More information about the llvm-commits mailing list