Remove Scope::Label.

This commit is contained in:
chriseth
2020-01-16 19:13:25 +01:00
parent 3d4a2219a6
commit 81569f7208
5 changed files with 1 additions and 58 deletions
-12
View File
@@ -123,10 +123,6 @@ bool AsmAnalyzer::operator()(Identifier const& _identifier)
}
++m_stackHeight;
},
[&](Scope::Label const&)
{
++m_stackHeight;
},
[&](Scope::Function const&)
{
m_errorReporter.typeError(
@@ -293,14 +289,6 @@ bool AsmAnalyzer::operator()(FunctionCall const& _funCall)
);
success = false;
},
[&](Scope::Label const&)
{
m_errorReporter.typeError(
_funCall.functionName.location,
"Attempt to call label instead of function."
);
success = false;
},
[&](Scope::Function const& _fun)
{
/// TODO: compare types too