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 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;