Skip to content

Commit

Permalink
[ELF] Optimize SectionBase::Kind values to make isa<InputSection> mor…
Browse files Browse the repository at this point in the history
…e efficient. NFC

Surprisingly my lld executable is 1.5KiB smaller.
  • Loading branch information
MaskRay committed Feb 28, 2022
1 parent bb3eeac commit fee7896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/ELF/InputSection.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ template <class ELFT> struct RelsOrRelas {
// sections.
class SectionBase {
public:
enum Kind { Regular, EHFrame, Merge, Synthetic, Output };
enum Kind { Regular, Synthetic, EHFrame, Merge, Output };

Kind kind() const { return (Kind)sectionKind; }

Expand Down

0 comments on commit fee7896

Please sign in to comment.