aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmParser.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-02-28 17:46:09 +0800
committerchriseth <c@ethdev.com>2017-03-03 22:41:02 +0800
commit369005fc03f13a392abef4b0a8b23226c796d023 (patch)
tree16335cef458033f5aa18674f2660e05ed604c443 /libsolidity/inlineasm/AsmParser.cpp
parent13fd569f761154a4e4b4fe2c6431b056f04a9119 (diff)
downloaddexon-solidity-369005fc03f13a392abef4b0a8b23226c796d023.tar
dexon-solidity-369005fc03f13a392abef4b0a8b23226c796d023.tar.gz
dexon-solidity-369005fc03f13a392abef4b0a8b23226c796d023.tar.bz2
dexon-solidity-369005fc03f13a392abef4b0a8b23226c796d023.tar.lz
dexon-solidity-369005fc03f13a392abef4b0a8b23226c796d023.tar.xz
dexon-solidity-369005fc03f13a392abef4b0a8b23226c796d023.tar.zst
dexon-solidity-369005fc03f13a392abef4b0a8b23226c796d023.zip
Remove stack annotations again.
Diffstat (limited to 'libsolidity/inlineasm/AsmParser.cpp')
-rw-r--r--libsolidity/inlineasm/AsmParser.cpp36
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;
}