aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/CompilerContext.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-10-06 20:13:07 +0800
committerchriseth <c@ethdev.com>2015-10-06 20:20:06 +0800
commit99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54 (patch)
treefd0c7d5797454be93d4c767142ed6042ebf4d00f /libsolidity/CompilerContext.h
parent44e42bf52e481f4f653a669291812b4d31f06022 (diff)
downloaddexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.tar.gz
dexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.tar.zst
dexon-solidity-99351aebe0c9ebbb06e34c18ecc19bc0c87d9d54.zip
Compiler version stamp.
Diffstat (limited to 'libsolidity/CompilerContext.h')
-rw-r--r--libsolidity/CompilerContext.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/CompilerContext.h b/libsolidity/CompilerContext.h
index 46ebfcf8..18865091 100644
--- a/libsolidity/CompilerContext.h
+++ b/libsolidity/CompilerContext.h
@@ -128,6 +128,9 @@ public:
CompilerContext& operator<<(u256 const& _value) { m_asm.append(_value); return *this; }
CompilerContext& operator<<(bytes const& _data) { m_asm.append(_data); return *this; }
+ /// Prepends "PUSH <compiler version number> POP"
+ void injectVersionStampIntoSub(size_t _subIndex);
+
void optimise(unsigned _runs = 200) { m_asm.optimise(true, true, _runs); }
eth::Assembly const& assembly() const { return m_asm; }