gallivm: Fix build with llvm-2.9.

The build fix of commit 40ae214067 does
not apply to llvm-2.9 but rather to llvm-3.0svn.
This commit is contained in:
Vinson Lee 2011-03-28 17:48:37 -07:00
parent 2737350157
commit 92e29dc5b0

View file

@ -209,12 +209,12 @@ lp_disassemble(const void* func)
raw_debug_ostream Out;
TargetMachine *TM = T->createTargetMachine(Triple, "");
#if HAVE_LLVM >= 0x0209
#if HAVE_LLVM >= 0x0300
unsigned int AsmPrinterVariant = AsmInfo->getAssemblerDialect();
#else
int AsmPrinterVariant = AsmInfo->getAssemblerDialect();
#endif
#if HAVE_LLVM >= 0x0209
#if HAVE_LLVM >= 0x0300
OwningPtr<MCInstPrinter> Printer(
T->createMCInstPrinter(*TM, AsmPrinterVariant, *AsmInfo));
#elif HAVE_LLVM >= 0x0208