diff options
author | chriseth <chris@ethereum.org> | 2018-01-25 23:45:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-25 23:45:54 +0800 |
commit | e7afde9587ff3b8d823292e64e119bd27ff83743 (patch) | |
tree | d47c5993e043db69cc4cbfe23b4965c83a4fb5d8 /libsolidity/codegen/CompilerContext.h | |
parent | 513c771e2cbe9037db6f19f2a106e6c309c0d48a (diff) | |
parent | f7315d19bdd5c83173d7eb42dcf907a4af0c0c94 (diff) | |
download | dexon-solidity-e7afde9587ff3b8d823292e64e119bd27ff83743.tar dexon-solidity-e7afde9587ff3b8d823292e64e119bd27ff83743.tar.gz dexon-solidity-e7afde9587ff3b8d823292e64e119bd27ff83743.tar.bz2 dexon-solidity-e7afde9587ff3b8d823292e64e119bd27ff83743.tar.lz dexon-solidity-e7afde9587ff3b8d823292e64e119bd27ff83743.tar.xz dexon-solidity-e7afde9587ff3b8d823292e64e119bd27ff83743.tar.zst dexon-solidity-e7afde9587ff3b8d823292e64e119bd27ff83743.zip |
Merge pull request #3203 from ethereum/nocall
Prevent libraries from being called.
Diffstat (limited to 'libsolidity/codegen/CompilerContext.h')
-rw-r--r-- | libsolidity/codegen/CompilerContext.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerContext.h b/libsolidity/codegen/CompilerContext.h index 0e8b639c..a155a3a5 100644 --- a/libsolidity/codegen/CompilerContext.h +++ b/libsolidity/codegen/CompilerContext.h @@ -174,6 +174,9 @@ public: eth::AssemblyItem appendData(bytes const& _data) { return m_asm->append(_data); } /// Appends the address (virtual, will be filled in by linker) of a library. void appendLibraryAddress(std::string const& _identifier) { m_asm->appendLibraryAddress(_identifier); } + /// Appends a zero-address that can be replaced by something else at deploy time (if the + /// position in bytecode is known). + void appendDeployTimeAddress() { m_asm->append(eth::PushDeployTimeAddress); } /// Resets the stack of visited nodes with a new stack having only @c _node void resetVisitedNodes(ASTNode const* _node); /// Pops the stack of visited nodes |