[PATCH] D74006: [MC][ELF] Make linked-to symbol name part of ELFSectionKey
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 00:59:41 PST 2020
grimar added inline comments.
================
Comment at: llvm/include/llvm/MC/MCContext.h:217
+ return O < 0;
return UniqueID < Other.UniqueID;
}
----------------
MaskRay wrote:
> grimar wrote:
> > Perhaps just:
> > ```
> > if (UniqueID != Other.UniqueID)
> > return UniqueID < Other.UniqueID;
> > return LinkedToName < Other.LinkedToName;
> > ```
> The order is so that it matches the field order. Name fields placing together looks better, so I want to stick with the current order.
>
> I can do a follow-up change to use `StringRef::compare` for SectionName and GroupName.
Up to you. Not a big problem anyways.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74006/new/
https://reviews.llvm.org/D74006
More information about the llvm-commits
mailing list