@@ -1480,7 +1480,7 @@ bool MasmParser::parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
14801480 auto VarIt = Variables.find (SymbolName.lower ());
14811481 if (VarIt != Variables.end ())
14821482 SymbolName = VarIt->second .Name ;
1483- Sym = getContext ().getOrCreateSymbol (SymbolName);
1483+ Sym = getContext ().parseSymbol (SymbolName);
14841484 }
14851485
14861486 // If this is an absolute variable reference, substitute it now to preserve
@@ -1965,7 +1965,7 @@ bool MasmParser::parseStatement(ParseStatementInfo &Info,
19651965 if (IDVal == " @@" ) {
19661966 Sym = Ctx.createDirectionalLocalSymbol (0 );
19671967 } else {
1968- Sym = getContext ().getOrCreateSymbol (IDVal);
1968+ Sym = getContext ().parseSymbol (IDVal);
19691969 }
19701970
19711971 // End of Labels should be treated as end of line for lexing
@@ -3009,8 +3009,7 @@ bool MasmParser::parseDirectiveEquate(StringRef IDVal, StringRef Name,
30093009 return false ;
30103010 }
30113011
3012- MCSymbol *Sym = getContext ().getOrCreateSymbol (Var.Name );
3013-
3012+ auto *Sym = getContext ().parseSymbol (Var.Name );
30143013 const MCConstantExpr *PrevValue =
30153014 Sym->isVariable ()
30163015 ? dyn_cast_or_null<MCConstantExpr>(Sym->getVariableValue ())
@@ -3318,7 +3317,7 @@ bool MasmParser::parseDirectiveNamedValue(StringRef TypeName, unsigned Size,
33183317 StringRef Name, SMLoc NameLoc) {
33193318 if (StructInProgress.empty ()) {
33203319 // Initialize named data value.
3321- MCSymbol *Sym = getContext ().getOrCreateSymbol (Name);
3320+ MCSymbol *Sym = getContext ().parseSymbol (Name);
33223321 getStreamer ().emitLabel (Sym);
33233322 unsigned Count;
33243323 if (emitIntegralValues (Size, &Count))
@@ -3509,7 +3508,7 @@ bool MasmParser::parseDirectiveNamedRealValue(StringRef TypeName,
35093508 SMLoc NameLoc) {
35103509 if (StructInProgress.empty ()) {
35113510 // Initialize named data value.
3512- MCSymbol *Sym = getContext ().getOrCreateSymbol (Name);
3511+ MCSymbol *Sym = getContext ().parseSymbol (Name);
35133512 getStreamer ().emitLabel (Sym);
35143513 unsigned Count;
35153514 if (emitRealValues (Semantics, &Count))
@@ -4003,7 +4002,7 @@ bool MasmParser::parseDirectiveNamedStructValue(const StructInfo &Structure,
40034002 SMLoc DirLoc, StringRef Name) {
40044003 if (StructInProgress.empty ()) {
40054004 // Initialize named data value.
4006- MCSymbol *Sym = getContext ().getOrCreateSymbol (Name);
4005+ MCSymbol *Sym = getContext ().parseSymbol (Name);
40074006 getStreamer ().emitLabel (Sym);
40084007 unsigned Count;
40094008 if (emitStructValues (Structure, &Count))
0 commit comments