[Mesa-dev] [PATCH] gallivm: Remove TargetMachine from createMCInstPrinter when using llvm-3.0

Tobias Droste tdroste at gmx.de
Thu Jul 7 20:45:25 PDT 2011


llvm-3.0svn revision 134525 removed the TargetMachine parameter from
createMCInstPrinter

Signed-off-by: Tobias Droste <tdroste at gmx.de>
---
 src/gallium/auxiliary/gallivm/lp_bld_debug.cpp |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
index 01e660e..a477b3e 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
+++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
@@ -218,10 +218,7 @@ lp_disassemble(const void* func)
 #else
    int AsmPrinterVariant = AsmInfo->getAssemblerDialect();
 #endif
-#if HAVE_LLVM >= 0x0300
-   OwningPtr<MCInstPrinter> Printer(
-         T->createMCInstPrinter(*TM, AsmPrinterVariant, *AsmInfo));
-#elif HAVE_LLVM >= 0x0208
+#if HAVE_LLVM >= 0x0208
    OwningPtr<MCInstPrinter> Printer(
          T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo));
 #else
-- 
1.7.3.4



More information about the mesa-dev mailing list