aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/AssemblyStack.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-11-03 23:05:08 +0800
committerchriseth <chris@ethereum.org>2018-12-01 06:39:05 +0800
commit6c44c5f0c93d6ce623bec773cc151a73d4b12bff (patch)
tree5a5d79f49211e87737b9c3b74bf40cb1c43e877c /libsolidity/interface/AssemblyStack.h
parentcc00d8172b6cd7f9fc032e4a21857455ace2f290 (diff)
downloaddexon-solidity-6c44c5f0c93d6ce623bec773cc151a73d4b12bff.tar
dexon-solidity-6c44c5f0c93d6ce623bec773cc151a73d4b12bff.tar.gz
dexon-solidity-6c44c5f0c93d6ce623bec773cc151a73d4b12bff.tar.bz2
dexon-solidity-6c44c5f0c93d6ce623bec773cc151a73d4b12bff.tar.lz
dexon-solidity-6c44c5f0c93d6ce623bec773cc151a73d4b12bff.tar.xz
dexon-solidity-6c44c5f0c93d6ce623bec773cc151a73d4b12bff.tar.zst
dexon-solidity-6c44c5f0c93d6ce623bec773cc151a73d4b12bff.zip
Apply the optimize commandline parameter to assembly mode.
Diffstat (limited to 'libsolidity/interface/AssemblyStack.h')
-rw-r--r--libsolidity/interface/AssemblyStack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/interface/AssemblyStack.h b/libsolidity/interface/AssemblyStack.h
index 7ae0592e..0d04ffec 100644
--- a/libsolidity/interface/AssemblyStack.h
+++ b/libsolidity/interface/AssemblyStack.h
@@ -69,6 +69,9 @@ public:
/// Multiple calls overwrite the previous state.
bool parseAndAnalyze(std::string const& _sourceName, std::string const& _source);
+ /// Run the optimizer suite. Can only be used with Yul or strict assembly.
+ void optimize();
+
/// Run the assembly step (should only be called after parseAndAnalyze).
MachineAssemblyObject assemble(Machine _machine) const;