[Mesa-dev] [PATCH] gallivm: Fix build against LLVM 3.7 SVN r233648

Roland Scheidegger sroland at vmware.com
Wed Apr 1 04:03:09 PDT 2015


Am 01.04.2015 um 04:57 schrieb Michel Dänzer:
> On 01.04.2015 00:36, Roland Scheidegger wrote:
>> Am 31.03.2015 um 08:33 schrieb Michel Dänzer:
>>> From: Michel Dänzer <michel.daenzer at amd.com>
>>>
>>> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
>>> ---
>>>  src/gallium/auxiliary/gallivm/lp_bld_debug.cpp | 5 +++++
>>>  1 file changed, 5 insertions(+)
>>>
>>> diff --git a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
>>> index d4d453d..65d2896 100644
>>> --- a/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
>>> +++ b/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp
>>> @@ -256,8 +256,13 @@ disassemble(const void* func, llvm::raw_ostream & Out)
>>>     }
>>>  
>>>  
>>> +#if HAVE_LLVM >= 0x0307
>>> +   OwningPtr<MCInstPrinter> Printer(
>>> +         T->createMCInstPrinter(llvm::Triple(Triple), AsmPrinterVariant, *AsmInfo, *MII, *MRI));
>>> +#else
>>>     OwningPtr<MCInstPrinter> Printer(
>>>           T->createMCInstPrinter(AsmPrinterVariant, *AsmInfo, *MII, *MRI, *STI));
>>> +#endif
>>>     if (!Printer) {
>>>        Out << "error: no instruction printer for target " << Triple.c_str() << "\n";
>>>        Out.flush();
>>>
>>
>> Does it actually work? I recently tried to do disassemble (more by
>> accident, actually) with llvm 3.6 and it didn't work at all.
> 
> TBH I didn't test it, but I can see that it doesn't seem to work in any
> useful way. Anyway, this change doesn't have any effect with LLVM 3.6,
> so it sounds like it was already broken before.
> 
> 
Yes certainly I was just hoping maybe it got magically fixed with this
change for LLVM 3.7 :-).

Roland




More information about the mesa-dev mailing list