@@ -125,7 +125,6 @@ class AsmParser : public MCAsmParser {
125
125
void *SavedDiagContext;
126
126
std::unique_ptr<MCAsmParserExtension> PlatformParser;
127
127
SMLoc StartTokLoc;
128
- std::optional<SMLoc> CFIStartProcLoc;
129
128
130
129
// / This is the current buffer index we're lexing from as managed by the
131
130
// / SourceMgr object.
@@ -1950,11 +1949,6 @@ bool AsmParser::parseStatement(ParseStatementInfo &Info,
1950
1949
Lex ();
1951
1950
}
1952
1951
1953
- if (CFIStartProcLoc && Sym->isExternal ())
1954
- return Error (StartTokLoc, " non-private labels cannot appear between "
1955
- " .cfi_startproc / .cfi_endproc pairs" ) &&
1956
- Error (*CFIStartProcLoc, " previous .cfi_startproc was here" );
1957
-
1958
1952
if (discardLTOSymbol (IDVal))
1959
1953
return false ;
1960
1954
@@ -4199,8 +4193,6 @@ bool AsmParser::parseDirectiveCFISections() {
4199
4193
// / parseDirectiveCFIStartProc
4200
4194
// / ::= .cfi_startproc [simple]
4201
4195
bool AsmParser::parseDirectiveCFIStartProc () {
4202
- CFIStartProcLoc = StartTokLoc;
4203
-
4204
4196
StringRef Simple;
4205
4197
if (!parseOptionalToken (AsmToken::EndOfStatement)) {
4206
4198
if (check (parseIdentifier (Simple) || Simple != " simple" ,
@@ -4221,11 +4213,8 @@ bool AsmParser::parseDirectiveCFIStartProc() {
4221
4213
// / parseDirectiveCFIEndProc
4222
4214
// / ::= .cfi_endproc
4223
4215
bool AsmParser::parseDirectiveCFIEndProc () {
4224
- CFIStartProcLoc = std::nullopt;
4225
-
4226
4216
if (parseEOL ())
4227
4217
return true ;
4228
-
4229
4218
getStreamer ().emitCFIEndProc ();
4230
4219
return false ;
4231
4220
}
0 commit comments