[llvm] e3e9c5c - [MC] Remove unneeded onLabelParsed and onLabelParsed from HLASM

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 1 15:24:57 PST 2025


Author: Fangrui Song
Date: 2025-03-01T15:24:52-08:00
New Revision: e3e9c5c8733a87455cf59b91e5e802f427cf5152

URL: https://github.com/llvm/llvm-project/commit/e3e9c5c8733a87455cf59b91e5e802f427cf5152
DIFF: https://github.com/llvm/llvm-project/commit/e3e9c5c8733a87455cf59b91e5e802f427cf5152.diff

LOG: [MC] Remove unneeded onLabelParsed and onLabelParsed from HLASM

They are only used by ARM and wasm.

Added: 
    

Modified: 
    llvm/lib/MC/MCParser/AsmParser.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp
index bf952df1b2418..ffd4611c883ae 100644
--- a/llvm/lib/MC/MCParser/AsmParser.cpp
+++ b/llvm/lib/MC/MCParser/AsmParser.cpp
@@ -6324,8 +6324,6 @@ bool HLASMAsmParser::parseAsHLASMLabel(ParseStatementInfo &Info,
   MCSymbol *Sym = getContext().getOrCreateSymbol(
       getContext().getAsmInfo()->isHLASM() ? LabelVal.upper() : LabelVal);
 
-  getTargetParser().doBeforeLabelEmit(Sym, LabelLoc);
-
   // Emit the label.
   Out.emitLabel(Sym, LabelLoc);
 
@@ -6335,8 +6333,6 @@ bool HLASMAsmParser::parseAsHLASMLabel(ParseStatementInfo &Info,
     MCGenDwarfLabelEntry::Make(Sym, &getStreamer(), getSourceManager(),
                                LabelLoc);
 
-  getTargetParser().onLabelParsed(Sym);
-
   return false;
 }
 


        


More information about the llvm-commits mailing list