diff options
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_llvm_emit.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_llvm_emit.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp index b889f029694..903e1028a09 100644 --- a/src/gallium/drivers/radeon/radeon_llvm_emit.cpp +++ b/src/gallium/drivers/radeon/radeon_llvm_emit.cpp @@ -39,12 +39,7 @@ #include <llvm/Target/TargetMachine.h> #include <llvm/Transforms/Scalar.h> #include <llvm-c/Target.h> - -#if HAVE_LLVM < 0x0302 -#include <llvm/Target/TargetData.h> -#else #include <llvm/DataLayout.h> -#endif #include <iostream> #include <stdlib.h> @@ -52,16 +47,6 @@ using namespace llvm; -#ifndef EXTERNAL_LLVM -extern "C" { - -void LLVMInitializeAMDGPUAsmPrinter(void); -void LLVMInitializeAMDGPUTargetMC(void); -void LLVMInitializeAMDGPUTarget(void); -void LLVMInitializeAMDGPUTargetInfo(void); -} -#endif - namespace { class LLVMEnsureMultithreaded { @@ -89,17 +74,10 @@ radeon_llvm_compile(LLVMModuleRef M, unsigned char ** bytes, Triple AMDGPUTriple(sys::getDefaultTargetTriple()); -#if HAVE_LLVM == 0x0302 - LLVMInitializeAMDGPUTargetInfo(); - LLVMInitializeAMDGPUTarget(); - LLVMInitializeAMDGPUTargetMC(); - LLVMInitializeAMDGPUAsmPrinter(); -#else LLVMInitializeR600TargetInfo(); LLVMInitializeR600Target(); LLVMInitializeR600TargetMC(); LLVMInitializeR600AsmPrinter(); -#endif std::string err; const Target * AMDGPUTarget = TargetRegistry::lookupTarget("r600", err); @@ -130,11 +108,7 @@ radeon_llvm_compile(LLVMModuleRef M, unsigned char ** bytes, )); TargetMachine &AMDGPUTargetMachine = *tm.get(); PassManager PM; -#if HAVE_LLVM < 0x0302 - PM.add(new TargetData(*AMDGPUTargetMachine.getTargetData())); -#else PM.add(new DataLayout(*AMDGPUTargetMachine.getDataLayout())); -#endif PM.add(createPromoteMemoryToRegisterPass()); AMDGPUTargetMachine.setAsmVerbosityDefault(true); |