@@ -1480,7 +1480,7 @@ bool MasmParser::parsePrimaryExpr(const MCExpr *&Res, SMLoc &EndLoc,
1480
1480
auto VarIt = Variables.find (SymbolName.lower ());
1481
1481
if (VarIt != Variables.end ())
1482
1482
SymbolName = VarIt->second .Name ;
1483
- Sym = getContext ().getOrCreateSymbol (SymbolName);
1483
+ Sym = getContext ().parseSymbol (SymbolName);
1484
1484
}
1485
1485
1486
1486
// If this is an absolute variable reference, substitute it now to preserve
@@ -1965,7 +1965,7 @@ bool MasmParser::parseStatement(ParseStatementInfo &Info,
1965
1965
if (IDVal == " @@" ) {
1966
1966
Sym = Ctx.createDirectionalLocalSymbol (0 );
1967
1967
} else {
1968
- Sym = getContext ().getOrCreateSymbol (IDVal);
1968
+ Sym = getContext ().parseSymbol (IDVal);
1969
1969
}
1970
1970
1971
1971
// End of Labels should be treated as end of line for lexing
@@ -3009,8 +3009,7 @@ bool MasmParser::parseDirectiveEquate(StringRef IDVal, StringRef Name,
3009
3009
return false ;
3010
3010
}
3011
3011
3012
- MCSymbol *Sym = getContext ().getOrCreateSymbol (Var.Name );
3013
-
3012
+ auto *Sym = getContext ().parseSymbol (Var.Name );
3014
3013
const MCConstantExpr *PrevValue =
3015
3014
Sym->isVariable ()
3016
3015
? dyn_cast_or_null<MCConstantExpr>(Sym->getVariableValue ())
@@ -3318,7 +3317,7 @@ bool MasmParser::parseDirectiveNamedValue(StringRef TypeName, unsigned Size,
3318
3317
StringRef Name, SMLoc NameLoc) {
3319
3318
if (StructInProgress.empty ()) {
3320
3319
// Initialize named data value.
3321
- MCSymbol *Sym = getContext ().getOrCreateSymbol (Name);
3320
+ MCSymbol *Sym = getContext ().parseSymbol (Name);
3322
3321
getStreamer ().emitLabel (Sym);
3323
3322
unsigned Count;
3324
3323
if (emitIntegralValues (Size, &Count))
@@ -3509,7 +3508,7 @@ bool MasmParser::parseDirectiveNamedRealValue(StringRef TypeName,
3509
3508
SMLoc NameLoc) {
3510
3509
if (StructInProgress.empty ()) {
3511
3510
// Initialize named data value.
3512
- MCSymbol *Sym = getContext ().getOrCreateSymbol (Name);
3511
+ MCSymbol *Sym = getContext ().parseSymbol (Name);
3513
3512
getStreamer ().emitLabel (Sym);
3514
3513
unsigned Count;
3515
3514
if (emitRealValues (Semantics, &Count))
@@ -4003,7 +4002,7 @@ bool MasmParser::parseDirectiveNamedStructValue(const StructInfo &Structure,
4003
4002
SMLoc DirLoc, StringRef Name) {
4004
4003
if (StructInProgress.empty ()) {
4005
4004
// Initialize named data value.
4006
- MCSymbol *Sym = getContext ().getOrCreateSymbol (Name);
4005
+ MCSymbol *Sym = getContext ().parseSymbol (Name);
4007
4006
getStreamer ().emitLabel (Sym);
4008
4007
unsigned Count;
4009
4008
if (emitStructValues (Structure, &Count))
0 commit comments