mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 18:24:34 +00:00
eliminate MCContext::CreateSymbol and CreateTemporarySymbol.
Add a new GetOrCreateTemporarySymbol method and a version that takes a twine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98118 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -240,14 +240,10 @@ bool AsmParser::ParseParenExpr(const MCExpr *&Res, SMLoc &EndLoc) {
|
||||
}
|
||||
|
||||
MCSymbol *AsmParser::CreateSymbol(StringRef Name) {
|
||||
if (MCSymbol *S = Ctx.LookupSymbol(Name))
|
||||
return S;
|
||||
|
||||
// If the label starts with L it is an assembler temporary label.
|
||||
if (Name.startswith("L"))
|
||||
return Ctx.CreateTemporarySymbol(Name);
|
||||
|
||||
return Ctx.CreateSymbol(Name);
|
||||
return Ctx.GetOrCreateTemporarySymbol(Name);
|
||||
return Ctx.GetOrCreateSymbol(Name);
|
||||
}
|
||||
|
||||
/// ParsePrimaryExpr - Parse a primary expression and return it.
|
||||
|
Reference in New Issue
Block a user