diff options
author | Christian <c@ethdev.com> | 2015-01-17 01:52:27 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-20 06:35:04 +0800 |
commit | e6c0a9b922a28001fcbdc4e4ee729659c987caef (patch) | |
tree | 3f74de859e357b84b8489aa8332a1b8e67abb281 /Compiler.h | |
parent | 6633fbb6030cda64bd5c16ac5d59bbaad71967b2 (diff) | |
download | dexon-solidity-e6c0a9b922a28001fcbdc4e4ee729659c987caef.tar.gz dexon-solidity-e6c0a9b922a28001fcbdc4e4ee729659c987caef.tar.zst dexon-solidity-e6c0a9b922a28001fcbdc4e4ee729659c987caef.zip |
Magic variables are only needed durinng name and type resolution, not during compilation.
Diffstat (limited to 'Compiler.h')
-rw-r--r-- | Compiler.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -32,15 +32,15 @@ class Compiler: private ASTConstVisitor public: explicit Compiler(bool _optimize = false): m_optimize(_optimize), m_context(), m_returnTag(m_context.newTag()) {} - void compileContract(ContractDefinition const& _contract, std::vector<MagicVariableDeclaration const*> const& _magicGlobals, + void compileContract(ContractDefinition const& _contract, std::map<ContractDefinition const*, bytes const*> const& _contracts); bytes getAssembledBytecode() { return m_context.getAssembledBytecode(m_optimize); } bytes getRuntimeBytecode() { return m_runtimeContext.getAssembledBytecode(m_optimize);} void streamAssembly(std::ostream& _stream) const { m_context.streamAssembly(_stream); } private: - /// Registers the global objects and the non-function objects inside the contract with the context. - void initializeContext(ContractDefinition const& _contract, std::vector<MagicVariableDeclaration const*> const& _magicGlobals, + /// Registers the non-function objects inside the contract with the context. + void initializeContext(ContractDefinition const& _contract, std::map<ContractDefinition const*, bytes const*> const& _contracts); /// Adds the code that is run at creation time. Should be run after exchanging the run-time context /// with a new and initialized context. |