diff options
Remove stack annotations again.
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmParser.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/libsolidity/inlineasm/AsmParser.cpp b/libsolidity/inlineasm/AsmParser.cpp index 9f24d9fb..0fc0a34f 100644 --- a/libsolidity/inlineasm/AsmParser.cpp +++ b/libsolidity/inlineasm/AsmParser.cpp @@ -121,42 +121,6 @@ assembly::Statement Parser::parseStatement() return label; } } - case Token::LBrack: - { - if (statement.type() != typeid(assembly::Identifier)) - fatalParserError("Label name must precede \"[\"."); - assembly::Identifier const& identifier = boost::get<assembly::Identifier>(statement); - Label label = createWithLocation<Label>(identifier.location); - label.name = identifier.name; - m_scanner->next(); - if (m_scanner->currentToken() == Token::Number) - { - label.stackInfo.push_back(m_scanner->currentLiteral()); - m_scanner->next(); - } - else if (m_scanner->currentToken() == Token::Sub) - { - m_scanner->next(); - label.stackInfo.push_back("-" + m_scanner->currentLiteral()); - expectToken(Token::Number); - } - else if (m_scanner->currentToken() != Token::RBrack) - while (true) - { - label.stackInfo.push_back(expectAsmIdentifier()); - if (m_scanner->currentToken() == Token::RBrack) - break; - expectToken(Token::Comma); - } - // Push an empty string to signify that there were brackets, like in - // "name[]:", which just resets the stack height to the height of the local variables. - if (label.stackInfo.empty()) - label.stackInfo.push_back(""); - expectToken(Token::RBrack); - label.location.end = endPosition(); - expectToken(Token::Colon); - return label; - } default: break; } |