gallivm: use InternalLinkage instead of PrivateLinkage for texture functions
authorRoland Scheidegger <sroland@vmware.com>
Sun, 8 May 2016 00:27:45 +0000 (02:27 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 10 May 2016 15:08:16 +0000 (17:08 +0200)
At least with MCJIT the disassembler will crash otherwise when trying to
disassemble such functions.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c

index 31cf74f0ceb5b50b1e01d31af99a4ce86167db80..3a8327d8305497fd3f841f624bf4881234cc5d3e 100644 (file)
@@ -3320,7 +3320,7 @@ lp_build_sample_soa_func(struct gallivm_state *gallivm,
       }
 
       LLVMSetFunctionCallConv(function, LLVMFastCallConv);
-      LLVMSetLinkage(function, LLVMPrivateLinkage);
+      LLVMSetLinkage(function, LLVMInternalLinkage);
 
       lp_build_sample_gen_func(gallivm,
                                static_texture_state,