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:
parent
bf6d7f43fd
commit
906cc21816
68 changed files with 101 additions and 7783 deletions
8
Test/hlsl.deadFunctionMissingBody.vert
Normal file
8
Test/hlsl.deadFunctionMissingBody.vert
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
float4 main(): SV_Target0 { return 0; }
|
||||
struct Surface { float3 albedo; };
|
||||
Surface surfaceShader(float fade);
|
||||
Surface surfaceShaderExec()
|
||||
{
|
||||
float fade = 0;
|
||||
return surfaceShader(0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue