Assembly: Remove Label instruction.

This commit is contained in:
Christian Parpart
2019-10-25 15:01:25 +02:00
parent 5e8d348f66
commit e23998fc6e
20 changed files with 1 additions and 94 deletions
-17
View File
@@ -205,23 +205,6 @@ Statement Parser::parseStatement()
return Statement{std::move(assignment)};
}
case Token::Colon:
{
if (elementary.type() != typeid(Identifier))
fatalParserError("Label name must precede \":\".");
Identifier const& identifier = boost::get<Identifier>(elementary);
advance();
// label
if (m_dialect.flavour != AsmFlavour::Loose)
fatalParserError("Labels are not supported.");
Label label = createWithLocation<Label>(identifier.location);
label.name = identifier.name;
return label;
}
default:
if (m_dialect.flavour != AsmFlavour::Loose)
fatalParserError("Call or assignment expected.");