aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerContext.h
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-11-08 03:08:05 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:18 +0800
commit47794c1da406a28f0e8a10e3e57cd935f5cc7f3d (patch)
tree94a8a509f31f9b5bb8741a10af4ba92c47e88969 /libsolidity/codegen/CompilerContext.h
parentb6992d740a849d28f7c2a52bef0ba6b3740c9179 (diff)
downloaddexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.gz
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.bz2
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.lz
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.xz
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.tar.zst
dexon-solidity-47794c1da406a28f0e8a10e3e57cd935f5cc7f3d.zip
Implement uninitialized storage functions.
Diffstat (limited to 'libsolidity/codegen/CompilerContext.h')
-rw-r--r--libsolidity/codegen/CompilerContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerContext.h b/libsolidity/codegen/CompilerContext.h
index 0c1500b0..6c509685 100644
--- a/libsolidity/codegen/CompilerContext.h
+++ b/libsolidity/codegen/CompilerContext.h
@@ -44,6 +44,8 @@ namespace solidity {
class CompilerContext
{
public:
+ bool isCreationPhase() const { return m_mode == CompilationMode::Creation; }
+
void addMagicGlobal(MagicVariableDeclaration const& _declaration);
void addStateVariable(VariableDeclaration const& _declaration, u256 const& _storageOffset, unsigned _byteOffset);
void addVariable(VariableDeclaration const& _declaration, unsigned _offsetToCurrent = 0);