lazy analysis of top level declarations

previously, we had lazy analysis of top level declarations,
but if a declaration was referenced within a compile-time
if or switch statement, that would still add the top
level declaration to the resolution queue.

now we have a declref ir instruction, which is only resolved
if we analyze the instruction. this takes into account comptime
branching.

closes #270
fa7c64ccd5Andrew Kelley committed on 3/18/2017, 3:28:43 PMparentaf536ac
4 files changedLine totals unavailable