diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2012-03-12 10:32:17 -0400 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2012-03-12 10:32:17 -0400 |
commit | 68dcf48750311b81297d9598d8ff6717dc17a261 (patch) | |
tree | d623852c346c9f64a284d6d3bad50ea0904dfad3 /src | |
parent | 278836f9dad620a5464b0e7f1bbe1a5051257b19 (diff) |
gallivm: Fix build with LLVM 3.1svn
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp index be8d7884bca..dffce9b9a1b 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp @@ -241,7 +241,11 @@ lp_disassemble(const void* func) int AsmPrinterVariant = AsmInfo->getAssemblerDialect(); #endif -#if HAVE_LLVM >= 0x0300 +#if HAVE_LLVM >= 0x0301 + const MCRegisterInfo *RI = T->createMCRegInfo(Triple); + OwningPtr<MCInstPrinter> Printer( + T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *RI, *STI)); +#elif HAVE_LLVM >= 0x0300 OwningPtr<MCInstPrinter> Printer( T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *STI)); #elif HAVE_LLVM >= 0x0208 |