aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-05-24 00:57:06 +0800
committerchriseth <chris@ethereum.org>2017-05-26 21:03:29 +0800
commiteaa13d42a09155200127418762940ca652b050c5 (patch)
treea91b776cfa3765899e8c7ef73b279183d79d2d6f /solc/CommandLineInterface.h
parentf2804c49ed44583fbfd31857951810f8c3023bc9 (diff)
downloaddexon-solidity-eaa13d42a09155200127418762940ca652b050c5.tar.gz
dexon-solidity-eaa13d42a09155200127418762940ca652b050c5.tar.zst
dexon-solidity-eaa13d42a09155200127418762940ca652b050c5.zip
Support multiple assembly front and backends.
Diffstat (limited to 'solc/CommandLineInterface.h')
-rw-r--r--solc/CommandLineInterface.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/solc/CommandLineInterface.h b/solc/CommandLineInterface.h
index cf8652f4..8c79e32d 100644
--- a/solc/CommandLineInterface.h
+++ b/solc/CommandLineInterface.h
@@ -22,6 +22,7 @@
#pragma once
#include <libsolidity/interface/CompilerStack.h>
+#include <libsolidity/interface/MultiBackendAssemblyStack.h>
#include <boost/program_options.hpp>
#include <boost/filesystem/path.hpp>
@@ -53,9 +54,7 @@ private:
bool link();
void writeLinkedFiles();
- /// Parse assembly input.
- bool assemble();
- void outputAssembly();
+ bool assemble(MultiBackendAssemblyStack::Input _input, MultiBackendAssemblyStack::Machine _targetMachine);
void outputCompilationResults();
@@ -85,11 +84,6 @@ private:
bool m_error = false; ///< If true, some error occurred.
bool m_onlyAssemble = false;
- /// Settings to use in assembly / JULIA mode.
- enum class AssemblyInput { JULIA, Assembly };
- enum class AssemblyMachine { EVM, EVM15, eWasm };
- AssemblyInput m_assemblyInput = AssemblyInput::Assembly;
- AssemblyMachine m_assemblyMachine = AssemblyMachine::EVM;
bool m_onlyLink = false;