aboutsummaryrefslogtreecommitdiffstats
path: root/Compiler.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-17 01:52:27 +0800
committerChristian <c@ethdev.com>2015-01-20 06:35:04 +0800
commite6c0a9b922a28001fcbdc4e4ee729659c987caef (patch)
tree3f74de859e357b84b8489aa8332a1b8e67abb281 /Compiler.h
parent6633fbb6030cda64bd5c16ac5d59bbaad71967b2 (diff)
downloaddexon-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Compiler.h b/Compiler.h
index c229a7a8..073721e0 100644
--- a/Compiler.h
+++ b/Compiler.h
@@ -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.