diff options
author | Marek Olšák <[email protected]> | 2018-04-09 18:36:58 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-04-27 17:56:04 -0400 |
commit | 5a94f15aa769cc090817c5dce2b98fa91d7e2110 (patch) | |
tree | 8915373c398c1a9e5e2a433762c3d27e5e43bcec /src/gallium | |
parent | 43f0a10051337c08d4c74e4c205dc75336d00ef9 (diff) |
radeonsi: use si_compiler::triple in si_llvm_optimize_module
Reviewed-by: Timothy Arceri <[email protected]>
Tested-by: Benedikt Schemmer <ben at besd.de>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c index cad81487d7e..f354417b89e 100644 --- a/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c +++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c @@ -1213,7 +1213,6 @@ void si_llvm_create_func(struct si_shader_context *ctx, void si_llvm_optimize_module(struct si_shader_context *ctx) { struct gallivm_state *gallivm = &ctx->gallivm; - const char *triple = LLVMGetTarget(gallivm->module); LLVMTargetLibraryInfoRef target_library_info; /* Dump LLVM IR before any optimization passes */ @@ -1224,7 +1223,8 @@ void si_llvm_optimize_module(struct si_shader_context *ctx) /* Create the pass manager */ gallivm->passmgr = LLVMCreatePassManager(); - target_library_info = gallivm_create_target_library_info(triple); + target_library_info = + gallivm_create_target_library_info(ctx->compiler->triple); LLVMAddTargetLibraryInfo(target_library_info, gallivm->passmgr); if (si_extra_shader_checks(ctx->screen, ctx->type)) |