Clean up load_def and lookup.
commit08433fc8f1d2ceced20bc794d3a92d7d3cea029a
authornelhage <nelhage@96bd3460-b366-48df-bbdf-208d6e4c0fe6>
Wed, 26 Nov 2008 19:24:07 +0000 (26 19:24 +0000)
committernelhage <nelhage@96bd3460-b366-48df-bbdf-208d6e4c0fe6>
Wed, 26 Nov 2008 19:24:07 +0000 (26 19:24 +0000)
treed3dc59888a816d0c8b4d5525c97ebaca25b9902a
parentaa5d08aac1a52ef6b3382b19df5e6015f71fe462
Clean up load_def and lookup.

Restructure them to avoid the weird "retry" loop and to make it clear
that the value returned from a loaded definition is irrelevant.

In addition, we load definitions in the global scope, not the scope in
which they are first encountered.

git-svn-id: https://svn.csail.mit.edu/proto@36 96bd3460-b366-48df-bbdf-208d6e4c0fe6
src/compiler/compiler.cpp