diff options
author | Samuel Pitoiset <[email protected]> | 2018-11-02 09:50:32 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-12-06 14:02:56 +0100 |
commit | 3fbdcd942fe2ca9095532b0663bfa96316663141 (patch) | |
tree | 84d3c2868cd7223d68ece399ab656c6ee8c60550 /src/amd/common/ac_llvm_helper.cpp | |
parent | 3b2ad8b290215a4bd52be4e397c9ab5603b8b372 (diff) |
amd: remove support for LLVM 6.0
User are encouraged to switch to LLVM 7.0 released in September 2018.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_helper.cpp')
-rw-r--r-- | src/amd/common/ac_llvm_helper.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/amd/common/ac_llvm_helper.cpp b/src/amd/common/ac_llvm_helper.cpp index e022e12c7f3..dcfb8008546 100644 --- a/src/amd/common/ac_llvm_helper.cpp +++ b/src/amd/common/ac_llvm_helper.cpp @@ -39,9 +39,6 @@ #include <llvm/Transforms/IPO.h> #include <llvm/IR/LegacyPassManager.h> -#if HAVE_LLVM < 0x0700 -#include "llvm/Support/raw_ostream.h" -#endif void ac_add_attr_dereferenceable(LLVMValueRef val, uint64_t bytes) { @@ -132,9 +129,7 @@ struct ac_compiler_passes *ac_create_llvm_passes(LLVMTargetMachineRef tm) llvm::TargetMachine *TM = reinterpret_cast<llvm::TargetMachine*>(tm); if (TM->addPassesToEmitFile(p->passmgr, p->ostream, -#if HAVE_LLVM >= 0x0700 nullptr, -#endif llvm::TargetMachine::CGFT_ObjectFile)) { fprintf(stderr, "amd: TargetMachine can't emit a file of this type!\n"); delete p; @@ -170,7 +165,5 @@ void ac_llvm_add_barrier_noop_pass(LLVMPassManagerRef passmgr) void ac_enable_global_isel(LLVMTargetMachineRef tm) { -#if HAVE_LLVM >= 0x0700 reinterpret_cast<llvm::TargetMachine*>(tm)->setGlobalISel(true); -#endif } |