From 9adff68ecc9fe725670c3752429d18d15379644b Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 24 May 2017 18:34:19 +0200 Subject: Introduce LabelID typedef. --- libjulia/backends/evm/AbstractAssembly.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'libjulia/backends/evm') diff --git a/libjulia/backends/evm/AbstractAssembly.h b/libjulia/backends/evm/AbstractAssembly.h index e3afa2b6..de31be28 100644 --- a/libjulia/backends/evm/AbstractAssembly.h +++ b/libjulia/backends/evm/AbstractAssembly.h @@ -44,6 +44,8 @@ namespace julia class AbstractAssembly { public: + using LabelID = size_t; + virtual ~AbstractAssembly() {} /// Set a new source location valid starting from the next instruction. @@ -56,11 +58,11 @@ public: /// Append a constant. virtual void appendConstant(u256 const& _constant) = 0; /// Append a label. - virtual void appendLabel(size_t _labelId) = 0; + virtual void appendLabel(LabelID _labelId) = 0; /// Append a label reference. - virtual void appendLabelReference(size_t _labelId) = 0; + virtual void appendLabelReference(LabelID _labelId) = 0; /// Generate a new unique label. - virtual size_t newLabelId() = 0; + virtual LabelID newLabelId() = 0; /// Append a reference to a to-be-linked symobl. /// Currently, we assume that the value is always a 20 byte number. virtual void appendLinkerSymbol(std::string const& _name) = 0; -- cgit v1.2.3