OSDN Git Service

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 31cf74f..3a8327d 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,