[PATCH] D26857: [ELF] Print output name for command line errors

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 18 09:06:00 PST 2016


ruiu added inline comments.


================
Comment at: ELF/Driver.cpp:520-523
   Config->OutputFile = getString(Args, OPT_o);
+  // Default output filename is "a.out" by the Unix tradition.
+  if (Config->OutputFile.empty())
+    Config->OutputFile = "a.out";
----------------
You can just do

  ... = getString(Args, OPT_o, "a.out");


Repository:
  rL LLVM

https://reviews.llvm.org/D26857





More information about the llvm-commits mailing list