aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmStack.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-02-09 21:04:23 +0800
committerchriseth <c@ethdev.com>2017-02-14 22:41:25 +0800
commit80f72437864301562b485cb380eddcea5e6e575f (patch)
tree688697587df071d2503f1b78209a626cbb68d1f0 /libsolidity/inlineasm/AsmStack.cpp
parent4189ff5b68f119878807104ebac0137171c8ecd6 (diff)
downloaddexon-solidity-80f72437864301562b485cb380eddcea5e6e575f.tar.gz
dexon-solidity-80f72437864301562b485cb380eddcea5e6e575f.tar.zst
dexon-solidity-80f72437864301562b485cb380eddcea5e6e575f.zip
Assembly printer.
Diffstat (limited to 'libsolidity/inlineasm/AsmStack.cpp')
-rw-r--r--libsolidity/inlineasm/AsmStack.cpp18
1 files changed, 14 insertions, 4 deletions
diff --git a/libsolidity/inlineasm/AsmStack.cpp b/libsolidity/inlineasm/AsmStack.cpp
index b8e0e857..6539e9bc 100644
--- a/libsolidity/inlineasm/AsmStack.cpp
+++ b/libsolidity/inlineasm/AsmStack.cpp
@@ -21,12 +21,17 @@
*/
#include <libsolidity/inlineasm/AsmStack.h>
-#include <memory>
-#include <libevmasm/Assembly.h>
-#include <libevmasm/SourceLocation.h>
-#include <libsolidity/parsing/Scanner.h>
+
#include <libsolidity/inlineasm/AsmParser.h>
#include <libsolidity/inlineasm/AsmCodeGen.h>
+#include <libsolidity/inlineasm/AsmPrinter.h>
+
+#include <libsolidity/parsing/Scanner.h>
+
+#include <libevmasm/Assembly.h>
+#include <libevmasm/SourceLocation.h>
+
+#include <memory>
using namespace std;
using namespace dev;
@@ -44,6 +49,11 @@ bool InlineAssemblyStack::parse(shared_ptr<Scanner> const& _scanner)
return true;
}
+string InlineAssemblyStack::print()
+{
+ return AsmPrinter()(*m_parserResult);
+}
+
eth::Assembly InlineAssemblyStack::assemble()
{
CodeGenerator codeGen(*m_parserResult, m_errors);