aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-02 21:07:35 +0800
committerGitHub <noreply@github.com>2018-08-02 21:07:35 +0800
commit009a55c82d22f08fd207739d7b8aeff215fb7c03 (patch)
treee900e0932a78429e052ea6de29eedbd0835005d5 /libsolidity/codegen
parent90a5928b883dc9bbc889269a4e86d3d32c79d8ca (diff)
parentf74cff622dd0eb8d4e64c014731e00fb9ea1d078 (diff)
downloaddexon-solidity-009a55c82d22f08fd207739d7b8aeff215fb7c03.tar
dexon-solidity-009a55c82d22f08fd207739d7b8aeff215fb7c03.tar.gz
dexon-solidity-009a55c82d22f08fd207739d7b8aeff215fb7c03.tar.bz2
dexon-solidity-009a55c82d22f08fd207739d7b8aeff215fb7c03.tar.lz
dexon-solidity-009a55c82d22f08fd207739d7b8aeff215fb7c03.tar.xz
dexon-solidity-009a55c82d22f08fd207739d7b8aeff215fb7c03.tar.zst
dexon-solidity-009a55c82d22f08fd207739d7b8aeff215fb7c03.zip
Merge pull request #4327 from ethereum/document-internals
Properly explain all the analsys steps in CompilerStack
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ContractCompiler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp
index bbb3db3d..2f15a33d 100644
--- a/libsolidity/codegen/ContractCompiler.cpp
+++ b/libsolidity/codegen/ContractCompiler.cpp
@@ -71,7 +71,11 @@ void ContractCompiler::compileContract(
appendDelegatecallCheck();
initializeContext(_contract, _contracts);
+ // This generates the dispatch function for externally visible functions
+ // and adds the function to the compilation queue. Additionally internal functions,
+ // which are referenced directly or indirectly will be added.
appendFunctionSelector(_contract);
+ // This processes the above populated queue until it is empty.
appendMissingFunctions();
}