[lld] [llvm] [ARM] Create mapping symbols with non-unique names (PR #99906)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 09:16:54 PDT 2024


================
@@ -670,17 +670,15 @@ class ARMELFStreamer : public MCELFStreamer {
   }
 
   void EmitMappingSymbol(StringRef Name) {
-    auto *Symbol = cast<MCSymbolELF>(getContext().getOrCreateSymbol(
-        Name + "." + Twine(MappingSymbolCounter++)));
+    auto *Symbol = cast<MCSymbolELF>(getContext().createLocalSymbol(Name));
----------------
MaskRay wrote:

Removed!

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


More information about the llvm-commits mailing list