aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/interface/AssemblyStack.h
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-30 06:50:46 +0800
committerchriseth <chris@ethereum.org>2017-06-09 22:40:14 +0800
commitf0d213e6b56da5be8088008bf2ceadb7fd0030f7 (patch)
tree1e53cb0fef34276b90f2768ac107ebf831ac2c87 /libsolidity/interface/AssemblyStack.h
parentfe3b46554af07b35f84ca48264830f8c27d4e52e (diff)
downloaddexon-solidity-f0d213e6b56da5be8088008bf2ceadb7fd0030f7.tar.gz
dexon-solidity-f0d213e6b56da5be8088008bf2ceadb7fd0030f7.tar.zst
dexon-solidity-f0d213e6b56da5be8088008bf2ceadb7fd0030f7.zip
Introduce MachineAssemblyObject
Diffstat (limited to 'libsolidity/interface/AssemblyStack.h')
-rw-r--r--libsolidity/interface/AssemblyStack.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libsolidity/interface/AssemblyStack.h b/libsolidity/interface/AssemblyStack.h
index ee2a334c..2ae596ed 100644
--- a/libsolidity/interface/AssemblyStack.h
+++ b/libsolidity/interface/AssemblyStack.h
@@ -38,6 +38,12 @@ struct AsmAnalysisInfo;
struct Block;
}
+struct MachineAssemblyObject
+{
+ std::shared_ptr<eth::LinkerObject> bytecode;
+ std::string assembly;
+};
+
/*
* Full assembly stack that can support EVM-assembly and JULIA as input and EVM, EVM1.5 and
* eWasm as output.
@@ -64,7 +70,7 @@ public:
bool analyze(assembly::Block const& _block, Scanner const* _scanner = nullptr);
/// Run the assembly step (should only be called after parseAndAnalyze).
- eth::LinkerObject assemble(Machine _machine) const;
+ MachineAssemblyObject assemble(Machine _machine) const;
/// @returns the errors generated during parsing, analysis (and potentially assembly).
ErrorList const& errors() const { return m_errors; }