diff options
author | Adrian Thurston <thurston@complang.org> | 2014-01-04 11:21:20 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-01-04 11:21:20 -0500 |
commit | ecee2a2987eda728e21465de233d2e5198417e63 (patch) | |
tree | 9d1abd6d1e8cf20e3520f740749d28f927c336c0 | |
parent | 89f6232528cbf6101250b7a9ba6aaa199c0f5b44 (diff) | |
download | colm-ecee2a2987eda728e21465de233d2e5198417e63.tar.gz |
moved initEmptyScanners out of declare pass
-rw-r--r-- | src/compiler.cc | 2 | ||||
-rw-r--r-- | src/declare.cc | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/compiler.cc b/src/compiler.cc index 64cf704d..ae892849 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -1121,6 +1121,8 @@ void Compiler::compile() declarePass(); + /* Fill any empty scanners with a default token. */ + initEmptyScanners(); resolvePass(); diff --git a/src/declare.cc b/src/declare.cc index 7253d781..dc8086f1 100644 --- a/src/declare.cc +++ b/src/declare.cc @@ -733,9 +733,5 @@ void Compiler::declarePass() rootNamespace->declare( this ); - /* Fill any empty scanners with a default token. */ - initEmptyScanners(); - declareByteCode(); - } |