[PATCH] D33112: Optimize orphan plament in a general way
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Fri May 12 08:14:33 PDT 2017
> ================
> Comment at: ELF/Writer.cpp:762-763
> + if (!(A->SortRank & RF_NOT_ADDR_SET)) {
> + auto AAddrSetI = Config->SectionStartMap.find(A->Name);
> + auto BAddrSetI = Config->SectionStartMap.find(B->Name);
> + return AAddrSetI->second < BAddrSetI->second;
> ----------------
> Can you use `at` instead of `find`?
There is no method at in StringMap. I was able to simplify it with
lookup.
Cheers,
Rafael
More information about the llvm-commits
mailing list