[lld] r300444 - [ELF] - Implemented --compress-debug-sections option.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 29 08:26:05 PDT 2017


> +static bool getCompressDebugSections(opt::InputArgList &Args) {
> +  if (auto *Arg = Args.getLastArg(OPT_compress_debug_sections)) {
> +    StringRef S = Arg->getValue();
> +    if (S == "none")
> +      return false;
> +    if (S == "zlib")
> +      return zlib::isAvailable();

Should it be an error if compression is requested but zlib is not
available?



More information about the llvm-commits mailing list