diff options
Diffstat (limited to 'lib/mesa/src/amd/common/ac_llvm_helper.cpp')
-rw-r--r-- | lib/mesa/src/amd/common/ac_llvm_helper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/mesa/src/amd/common/ac_llvm_helper.cpp b/lib/mesa/src/amd/common/ac_llvm_helper.cpp index d392c0ece..25928fc3d 100644 --- a/lib/mesa/src/amd/common/ac_llvm_helper.cpp +++ b/lib/mesa/src/amd/common/ac_llvm_helper.cpp @@ -197,7 +197,11 @@ struct ac_compiler_passes *ac_create_llvm_passes(LLVMTargetMachineRef tm) if (TM->addPassesToEmitFile(p->passmgr, p->ostream, nullptr, +#if HAVE_LLVM >= 0x1000 + llvm::CGFT_ObjectFile)) { +#else llvm::TargetMachine::CGFT_ObjectFile)) { +#endif fprintf(stderr, "amd: TargetMachine can't emit a file of this type!\n"); delete p; return NULL; |