radeonsi: Re-enable LLVM IR dumps

This was inadvertently disabled by
761e36b4ca.
This commit is contained in:
Tom Stellard 2015-01-07 15:51:48 -05:00
parent 73bc0fdb6f
commit 17a2f11a06
1 changed files with 3 additions and 1 deletions

View File

@ -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);