summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2015-01-07 15:51:48 -0500
committerTom Stellard <[email protected]>2015-01-20 09:55:44 -0500
commit17a2f11a06026f931112d21a9808b04287d16546 (patch)
tree447233d0c6cac439cdd78932ba7005555274ae88 /src/gallium
parent73bc0fdb6f65ddb481cf525bf354e1a16bea4d75 (diff)
radeonsi: Re-enable LLVM IR dumps
This was inadvertently disabled by 761e36b4caab4e8e09a4c2b1409a825902fc7d2c.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/radeon/radeon_llvm_emit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c
index b98afb246ae..0f9dbab4f24 100644
--- a/src/gallium/drivers/radeon/radeon_llvm_emit.c
+++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c
@@ -162,7 +162,6 @@ unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_shader_binary *binar
strncpy(cpu, gpu_family, CPU_STRING_LEN);
memset(fs, 0, sizeof(fs));
if (dump) {
- LLVMDumpModule(M);
strncpy(fs, "+DumpCode", FS_STRING_LEN);
}
tm = LLVMCreateTargetMachine(target, triple, cpu, fs,
@@ -170,6 +169,9 @@ unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_shader_binary *binar
LLVMCodeModelDefault);
dispose_tm = true;
}
+ if (dump) {
+ LLVMDumpModule(M);
+ }
/* Setup Diagnostic Handler*/
llvm_ctx = LLVMGetModuleContext(M);