[llvm] [MC][DWARF][NFC] Drop CIEKey map (PR #96075)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 04:22:40 PDT 2024
================
@@ -1819,44 +1803,28 @@ struct CIEKey {
Other.IsMTETaggedFrame);
}
- const MCSymbol *Personality;
- unsigned PersonalityEncoding;
- unsigned LsdaEncoding;
- bool IsSignalFrame;
- bool IsSimple;
- unsigned RAReg;
- bool IsBKeyFrame;
- bool IsMTETaggedFrame;
+ bool operator==(const CIEKey &Other) const {
+ return Personality == Other.Personality &&
+ PersonalityEncoding == Other.PersonalityEncoding &&
+ LsdaEncoding == Other.LsdaEncoding &&
+ IsSignalFrame == Other.IsSignalFrame && IsSimple == Other.IsSimple &&
+ RAReg == Other.RAReg && IsBKeyFrame == Other.IsBKeyFrame &&
+ IsMTETaggedFrame == Other.IsMTETaggedFrame;
+ }
+ bool operator!=(const CIEKey &Other) const { return !(*this == Other); }
+
+ const MCSymbol *Personality = nullptr;
+ unsigned PersonalityEncoding = 0;
+ unsigned LsdaEncoding = -1;
+ bool IsSignalFrame = false;
+ bool IsSimple = false;
+ unsigned RAReg = static_cast<unsigned>(INT_MAX);
----------------
aengelke wrote:
I just re-used the values from the previous `getEmptyKey()`. But agreed, UINT_MAX makes more sense.
https://github.com/llvm/llvm-project/pull/96075
More information about the llvm-commits
mailing list