mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
gallivm: Pass in a MCInstrInfo to createMCInstPrinter on llvm-3.1.
llvm-3.1svn r153860 makes MCInstrInfo available to the MCInstPrinter. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
24ca588ce6
commit
4f513002f6
1 changed files with 7 additions and 1 deletions
|
|
@ -251,11 +251,17 @@ lp_disassemble(const void* func)
|
|||
debug_printf("error: no register info for target %s\n", Triple.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
OwningPtr<const MCInstrInfo> MII(T->createMCInstrInfo());
|
||||
if (!MII) {
|
||||
debug_printf("error: no instruction info for target %s\n", Triple.c_str());
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if HAVE_LLVM >= 0x0301
|
||||
OwningPtr<MCInstPrinter> Printer(
|
||||
T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *MRI, *STI));
|
||||
T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *MII, *MRI, *STI));
|
||||
#elif HAVE_LLVM == 0x0300
|
||||
OwningPtr<MCInstPrinter> Printer(
|
||||
T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *STI));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue