[PATCH] D44224: [llvm-objdump] Support disassembling by symbol name

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 8 14:11:04 PST 2018


Rafael Auler via Phabricator <reviews at reviews.llvm.org> writes:

> +  if (!DisassembleFunctions.empty())
> +    DisasmFuncsSet.insert(DisassembleFunctions.begin(),
> +                          DisassembleFunctions.end());

I don't think you need the if:

    DisasmFuncsSet.insert(DisassembleFunctions.begin(),
                          DisassembleFunctions.end());

Will do nothing if DisassembleFunctions is empty.

LGTM with that.

Cheers,
Rafael


More information about the llvm-commits mailing list