aboutsummaryrefslogtreecommitdiffstats
path: root/test/tools
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-07 07:56:16 +0800
committerchriseth <chris@ethereum.org>2018-12-12 02:24:44 +0800
commitfb3a0ac1c7d2c4624df6ae62d290a2de7768d036 (patch)
tree72a8593bf822032ecf50dbc8e1c78e899a5befd4 /test/tools
parent8d49e539951791a25a63f470e8a9935679c7404f (diff)
downloaddexon-solidity-fb3a0ac1c7d2c4624df6ae62d290a2de7768d036.tar.gz
dexon-solidity-fb3a0ac1c7d2c4624df6ae62d290a2de7768d036.tar.zst
dexon-solidity-fb3a0ac1c7d2c4624df6ae62d290a2de7768d036.zip
Codegen for object access.
Diffstat (limited to 'test/tools')
-rw-r--r--test/tools/yulopti.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/tools/yulopti.cpp b/test/tools/yulopti.cpp
index 477de42f..3dc35f73 100644
--- a/test/tools/yulopti.cpp
+++ b/test/tools/yulopti.cpp
@@ -49,6 +49,8 @@
#include <libyul/optimiser/StructuralSimplifier.h>
#include <libyul/optimiser/VarDeclPropagator.h>
+#include <libyul/backends/evm/EVMDialect.h>
+
#include <libdevcore/JSON.h>
#include <boost/program_options.hpp>
@@ -83,7 +85,7 @@ public:
{
ErrorReporter errorReporter(m_errors);
shared_ptr<Scanner> scanner = make_shared<Scanner>(CharStream(_input, ""));
- m_ast = yul::Parser(errorReporter, yul::Dialect::strictAssemblyForEVM()).parse(scanner, false);
+ m_ast = yul::Parser(errorReporter, yul::EVMDialect::strictAssemblyForEVM()).parse(scanner, false);
if (!m_ast || !errorReporter.errors().empty())
{
cout << "Error parsing source." << endl;
@@ -96,7 +98,7 @@ public:
errorReporter,
EVMVersion::byzantium(),
langutil::Error::Type::SyntaxError,
- Dialect::strictAssemblyForEVM()
+ EVMDialect::strictAssemblyForEVM()
);
if (!analyzer.analyze(*m_ast) || !errorReporter.errors().empty())
{