ac: fix build with recent LLVM
from Samuel Pitoiset ee9811a0bb86d3d75fafeece368f6182048807d0 in mainline Mesa
This commit is contained in:
parent
60964e1bb6
commit
7b35d83e06
@ -197,7 +197,11 @@ struct ac_compiler_passes *ac_create_llvm_passes(LLVMTargetMachineRef tm)
|
|||||||
|
|
||||||
if (TM->addPassesToEmitFile(p->passmgr, p->ostream,
|
if (TM->addPassesToEmitFile(p->passmgr, p->ostream,
|
||||||
nullptr,
|
nullptr,
|
||||||
|
#if HAVE_LLVM >= 0x1000
|
||||||
|
llvm::CGFT_ObjectFile)) {
|
||||||
|
#else
|
||||||
llvm::TargetMachine::CGFT_ObjectFile)) {
|
llvm::TargetMachine::CGFT_ObjectFile)) {
|
||||||
|
#endif
|
||||||
fprintf(stderr, "amd: TargetMachine can't emit a file of this type!\n");
|
fprintf(stderr, "amd: TargetMachine can't emit a file of this type!\n");
|
||||||
delete p;
|
delete p;
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user