[PATCH] D42733: [ELF] - Use InitTargetOptionsFromCodeGenFlags/ParseCommandLineOptions for parsing LTO options.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 31 15:32:10 PST 2018


George Rimar via Phabricator <reviews at reviews.llvm.org> writes:

> @@ -685,6 +679,7 @@
>    Config->ZWxneeded = hasZOption(Args, "wxneeded");
>  
>    // Parse LTO plugin-related options for compatibility with gold.
> +  std::vector<const char *> LTOOptions({Argv0});

Do we need to pass a real argv0? If not, it is probably better to use
"<lld>" or something like that to simplify the code.

Cheers,
Rafael


More information about the llvm-commits mailing list