aboutsummaryrefslogtreecommitdiffstats
path: root/libjulia/backends
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-04-28 21:33:52 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-06-16 17:56:21 +0800
commit47925bc14e80d0c33c491dabc3c3dd3ea787b63c (patch)
tree10f0dc08bf0a78a02a921d7fa69449c94d6676a3 /libjulia/backends
parent54e97d1c34d7c291673e695a991db8df627c503e (diff)
downloaddexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.tar.gz
dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.tar.zst
dexon-solidity-47925bc14e80d0c33c491dabc3c3dd3ea787b63c.zip
Parse for statement in assembly parser / printer
Diffstat (limited to 'libjulia/backends')
-rw-r--r--libjulia/backends/evm/EVMCodeTransform.cpp5
-rw-r--r--libjulia/backends/evm/EVMCodeTransform.h16
2 files changed, 6 insertions, 15 deletions
diff --git a/libjulia/backends/evm/EVMCodeTransform.cpp b/libjulia/backends/evm/EVMCodeTransform.cpp
index 7c14eb8b..00d0bde5 100644
--- a/libjulia/backends/evm/EVMCodeTransform.cpp
+++ b/libjulia/backends/evm/EVMCodeTransform.cpp
@@ -53,6 +53,11 @@ void CodeTransform::run(Block const& _block)
}
+void CodeTransform::operator()(ForLoop const&)
+{
+ solAssert(false, "For loop not removed during desugaring phase.");
+}
+
void CodeTransform::operator()(VariableDeclaration const& _varDecl)
{
solAssert(m_scope, "");
diff --git a/libjulia/backends/evm/EVMCodeTransform.h b/libjulia/backends/evm/EVMCodeTransform.h
index 202f5051..9814f0f5 100644
--- a/libjulia/backends/evm/EVMCodeTransform.h
+++ b/libjulia/backends/evm/EVMCodeTransform.h
@@ -32,21 +32,6 @@ namespace solidity
class ErrorReporter;
namespace assembly
{
-struct Literal;
-struct Block;
-struct Switch;
-struct Label;
-struct FunctionalInstruction;
-struct Assignment;
-struct VariableDeclaration;
-struct Instruction;
-struct Identifier;
-struct StackAssignment;
-struct FunctionDefinition;
-struct FunctionCall;
-
-using Statement = boost::variant<Instruction, Literal, Label, StackAssignment, Identifier, Assignment, FunctionCall, FunctionalInstruction, VariableDeclaration, FunctionDefinition, Switch, Block>;
-
struct AsmAnalysisInfo;
}
}
@@ -115,6 +100,7 @@ public:
void operator()(solidity::assembly::VariableDeclaration const& _varDecl);
void operator()(solidity::assembly::Switch const& _switch);
void operator()(solidity::assembly::FunctionDefinition const&);
+ void operator()(solidity::assembly::ForLoop const&);
void operator()(solidity::assembly::Block const& _block);
private: