aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerContext.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-12-15 19:59:17 +0800
committerChristian <c@ethdev.com>2014-12-15 20:05:18 +0800
commit40f7c32e57cf8b09d45f52935b8726f5baef5358 (patch)
treeffd8a95576fd6ab0deec5246c474b07aa27b6792 /CompilerContext.h
parent2f64c56ef3a49f7551a708f63c4ed836efce7b73 (diff)
downloaddexon-solidity-40f7c32e57cf8b09d45f52935b8726f5baef5358.tar.gz
dexon-solidity-40f7c32e57cf8b09d45f52935b8726f5baef5358.tar.zst
dexon-solidity-40f7c32e57cf8b09d45f52935b8726f5baef5358.zip
Packing and unpacking of constructor arguments.
Diffstat (limited to 'CompilerContext.h')
-rw-r--r--CompilerContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/CompilerContext.h b/CompilerContext.h
index 99f5ae94..795f447a 100644
--- a/CompilerContext.h
+++ b/CompilerContext.h
@@ -81,6 +81,8 @@ public:
/// Adds a subroutine to the code (in the data section) and pushes its size (via a tag)
/// on the stack. @returns the assembly item corresponding to the pushed subroutine, i.e. its offset.
eth::AssemblyItem addSubroutine(eth::Assembly const& _assembly) { return m_asm.appendSubSize(_assembly); }
+ /// Pushes the size of the final program
+ void appendProgramSize() { return m_asm.appendProgramSize(); }
/// Adds data to the data section, pushes a reference to the stack
eth::AssemblyItem appendData(bytes const& _data) { return m_asm.append(_data); }