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

Peter Smith via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 04:32:13 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));
----------------
smithp35 wrote:

I think the removed code is the only use for MappingSymbolCounter, can it be removed?

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


More information about the llvm-commits mailing list