diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-06-16 10:45:00 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-06-16 10:45:00 +0000 |
commit | ed823bed731b9b8d53343dbc7b93a782d9e4db27 (patch) | |
tree | 92d48a33272e43fd9b5d6bbc8560c1a6b659e7b7 | |
parent | 22ca205466b1e33b701d517ac86fe9879655f4c8 (diff) |
ac: fix build with recent LLVM
from Samuel Pitoiset
ee9811a0bb86d3d75fafeece368f6182048807d0 in mainline Mesa
-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; |