[Mesa-dev] [PATCH] gallivm: Remove TargetMachine from createMCInstPrinter when using llvm-3.0
Brian Paul
brianp at vmware.com
Fri Jul 8 07:00:22 PDT 2011
On 07/07/2011 09:45 PM, Tobias Droste wrote:
> 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
I don't think this patch is needed now that I applied Gustaw's patch
from July 6 (commit fc98444bd58960e6cab28423365923bc7e7af3e1).
-Brian
More information about the mesa-dev
mailing list