[llvm] [MC] Make ELFUniquingMap a StringMap (PR #95006)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 11:23:38 PDT 2024


================
@@ -350,7 +325,7 @@ class MCContext {
   };
 
   StringMap<MCSectionMachO *> MachOUniquingMap;
-  std::map<ELFSectionKey, MCSectionELF *> ELFUniquingMap;
+  StringMap<MCSectionELF *> ELFUniquingMap;
----------------
MaskRay wrote:

Move ELF after COFF to move to a lexicographical order... (MachO is an outlier)

https://github.com/llvm/llvm-project/pull/95006


More information about the llvm-commits mailing list