[lld] [llvm] [MC,AArch64] Create mapping symbols with non-unique names (PR #99836)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 08:54:23 PDT 2024


================
@@ -271,8 +271,7 @@ class AArch64ELFStreamer : 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 by the second commit. Thanks

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


More information about the llvm-commits mailing list