================
@@ -693,8 +700,12 @@ getInput(const cl::LibraryOptionsContext &LibraryOptions, 
const ArgList &Args) {
       if (Args.hasArg(OPT_lto_emit_asm))
         TempFile = Args.getLastArgValue(OPT_o, "a.out");
       else {
-        auto TempFileOrErr = createTempFile(
-            Args, sys::path::stem(Args.getLastArgValue(OPT_o, "a.out")), "s");
----------------
jhuber6 wrote:

Referenced this from the existing LTO handling in `lld`.
```c++
  StringRef Stem = sys::path::stem(Args.getLastArgValue(OPT_o, "a.out"));
  auto TempFileOrErr = createTempFile(
      Args, Stem + (Task == 0 ? Twine("") : Twine('.') + Twine(Task)), "s")
```

https://github.com/llvm/llvm-project/pull/238883
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to