mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
gallivm: Fix build with latest LLVM
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Reviewed-and-Tested-by: Michel Dänzer <michel.daenzer@amd.com>
(cherry picked from commit e28136343b)
Nominated-by: Marek Olšák <maraeo@gmail.com>
Conflicts:
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
This commit is contained in:
parent
c89719e955
commit
8fe85c7742
1 changed files with 8 additions and 0 deletions
|
|
@ -34,6 +34,10 @@
|
|||
#include <llvm/Support/Format.h>
|
||||
#include <llvm/Support/MemoryObject.h>
|
||||
|
||||
#if HAVE_LLVM >= 0x0306
|
||||
#include <llvm/Target/TargetSubtargetInfo.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_LLVM >= 0x0300
|
||||
#include <llvm/Support/TargetRegistry.h>
|
||||
#include <llvm/MC/MCSubtargetInfo.h>
|
||||
|
|
@ -302,7 +306,11 @@ disassemble(const void* func, llvm::raw_ostream & Out)
|
|||
OwningPtr<TargetMachine> TM(T->createTargetMachine(Triple, ""));
|
||||
#endif
|
||||
|
||||
#if HAVE_LLVM >= 0x0306
|
||||
const TargetInstrInfo *TII = TM->getSubtargetImpl()->getInstrInfo();
|
||||
#else
|
||||
const TargetInstrInfo *TII = TM->getInstrInfo();
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Wrap the data in a MemoryObject
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue