radeon/llvm: fix compiling when llvm is active, but opencl isn't

Signed-off-by: Christian König <deathsimple@vodafone.de>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
This commit is contained in:
Christian König
2012-07-13 11:10:37 +02:00
parent aa0becdbb6
commit 4247fd9928
+4
View File
@@ -16,6 +16,8 @@
#include <stdio.h>
#if defined R600_USE_LLVM || defined HAVE_OPENCL
static LLVMValueRef llvm_fetch_const(
struct lp_build_tgsi_context * bld_base,
const struct tgsi_full_src_register *reg,
@@ -319,3 +321,5 @@ unsigned r600_llvm_compile(
return radeon_llvm_compile(mod, inst_bytes, inst_byte_count,
gpu_family, dump);
}
#endif