mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Introduce LabelID typedef.
This commit is contained in:
@@ -70,12 +70,12 @@ public:
|
||||
m_assembly.append(_constant);
|
||||
}
|
||||
/// Append a label.
|
||||
virtual void appendLabel(size_t _labelId) override
|
||||
virtual void appendLabel(LabelID _labelId) override
|
||||
{
|
||||
m_assembly.append(eth::AssemblyItem(eth::Tag, _labelId));
|
||||
}
|
||||
/// Append a label reference.
|
||||
virtual void appendLabelReference(size_t _labelId) override
|
||||
virtual void appendLabelReference(LabelID _labelId) override
|
||||
{
|
||||
m_assembly.append(eth::AssemblyItem(eth::PushTag, _labelId));
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ struct GenericVisitor<>: public boost::static_visitor<> {
|
||||
struct Scope
|
||||
{
|
||||
using JuliaType = std::string;
|
||||
using LabelID = size_t;
|
||||
|
||||
struct Variable
|
||||
{
|
||||
@@ -76,7 +77,7 @@ struct Scope
|
||||
|
||||
struct Label
|
||||
{
|
||||
boost::optional<size_t> id;
|
||||
boost::optional<LabelID> id;
|
||||
};
|
||||
|
||||
struct Function
|
||||
|
||||
Reference in New Issue
Block a user