mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adapet uses of AssemblyStack.
This commit is contained in:
@@ -20,13 +20,11 @@
|
||||
|
||||
#include <test/Options.h>
|
||||
|
||||
#include <libsolidity/interface/AssemblyStack.h>
|
||||
#include <libyul/AssemblyStack.h>
|
||||
#include <libevmasm/Instruction.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace dev
|
||||
{
|
||||
namespace yul
|
||||
{
|
||||
namespace test
|
||||
@@ -36,9 +34,9 @@ namespace
|
||||
{
|
||||
string assemble(string const& _input)
|
||||
{
|
||||
solidity::AssemblyStack asmStack;
|
||||
AssemblyStack asmStack;
|
||||
BOOST_REQUIRE_MESSAGE(asmStack.parseAndAnalyze("", _input), "Source did not parse: " + _input);
|
||||
return solidity::disassemble(asmStack.assemble(solidity::AssemblyStack::Machine::EVM, true).bytecode->bytecode);
|
||||
return dev::solidity::disassemble(asmStack.assemble(AssemblyStack::Machine::EVM, true).bytecode->bytecode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -350,4 +348,3 @@ BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user