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

@@ -282,19 +282,6 @@ ERROR: node is still EOpNull!
0:202 'f' (global double)
0:202 Constant:
0:202 0.000800
12:20031 Function Definition: foo234( (global void)
12:20031 Function Parameters:
12:20033 Sequence
12:20033 move second child to first child (temp 4-component vector of float)
12:20033 gl_Position: direct index for structure (gl_Position 4-component vector of float Position)
12:20033 'anon@0' (out block{gl_Position 4-component vector of float Position gl_Position, gl_PointSize float PointSize gl_PointSize, out 1-element array of float ClipDistance gl_ClipDistance, gl_ClipVertex 4-component vector of float ClipVertex gl_ClipVertex, out 4-component vector of float FrontColor gl_FrontColor, out 4-component vector of float BackColor gl_BackColor, out 4-component vector of float FrontSecondaryColor gl_FrontSecondaryColor, out 4-component vector of float BackSecondaryColor gl_BackSecondaryColor, out 1-element array of 4-component vector of float TexCoord gl_TexCoord, out float FogFragCoord gl_FogFragCoord})
12:20033 Constant:
12:20033 0 (const uint)
12:20033 Constant:
12:20033 6.000000
12:20033 6.000000
12:20033 6.000000
12:20033 6.000000
12:9011 Sequence
12:9011 move second child to first child (temp int)
12:9011 'R1' (global int)