Compiler version stamp.

This commit is contained in:
chriseth
2015-10-06 14:20:06 +02:00
parent 44e42bf52e
commit 99351aebe0
7 changed files with 71 additions and 3 deletions
+3
View File
@@ -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; }