Linker: Eliminate uncalled functions, because they can be ill-defined.

Fixes issue #610. Also provides a testing option to keep uncalled functions.
This commit is contained in:
John Kessenich
2016-12-09 19:22:20 -07:00
parent bf6d7f43fd
commit 906cc21816
68 changed files with 101 additions and 7783 deletions

View File

@@ -135,17 +135,6 @@ ERROR: node is still EOpNull!
0:133 'selected3' (global int)
0:133 Constant:
0:133 3 (const int)
0:175 Function Definition: foo985( (global void)
0:175 Function Parameters:
0:175 Sequence
0:175 add (temp int)
0:175 Constant:
0:175 2 (const int)
0:175 Comma (temp int)
0:175 Constant:
0:175 3 (const int)
0:175 Constant:
0:175 4 (const int)
0:? Linker Objects
0:? 'sum' (global float)
0:? 'selected4' (global int)