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

@@ -399,17 +399,6 @@ ERROR: node is still EOpNull!
0:26 'fd' (global double)
0:26 Constant:
0:26 2.000000
0:127 Function Definition: foo(f1[5]; (global 5-element array of float)
0:127 Function Parameters:
0:127 '' (in 5-element array of float)
0:129 Sequence
0:129 Branch: Return with expression
0:129 Constant:
0:129 3.400000
0:129 4.200000
0:129 5.000000
0:129 5.200000
0:129 1.100000
0:137 Function Definition: main( (global void)
0:137 Function Parameters:
0:140 Sequence