Bug 77500 - [llvmpipe] src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:230:71: error: no matching function for call to ‘llvm::Target::createMCDisassembler(const llvm::MCSubtargetInfo&) const’
Summary: [llvmpipe] src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:230:71: error: no m...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) All
: medium blocker
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-15 20:44 UTC by Vinson Lee
Modified: 2014-04-16 18:06 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2014-04-15 20:44:58 UTC
mesa: 602510395a96a1f6ca29189e4f5cfb3f07f21d23 (master 10.2.0-devel)

llvmpipe fails to build with llvm-3.5svn >= r206241


$ scons
[...]
  Compiling src/gallium/auxiliary/gallivm/lp_bld_debug.cpp ...
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp: In function ‘size_t disassemble(const void*, llvm::raw_ostream&)’:
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:230:71: error: no matching function for call to ‘llvm::Target::createMCDisassembler(const llvm::MCSubtargetInfo&) const’
    OwningPtr<const MCDisassembler> DisAsm(T->createMCDisassembler(*STI));
                                                                       ^
src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:230:71: note: candidate is:
In file included from src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:38:0:
llvm/include/llvm/Support/TargetRegistry.h:381:21: note: llvm::MCDisassembler* llvm::Target::createMCDisassembler(const llvm::MCSubtargetInfo&, llvm::MCContext&) const
     MCDisassembler *createMCDisassembler(const MCSubtargetInfo &STI,
                     ^
llvm/include/llvm/Support/TargetRegistry.h:381:21: note:   candidate expects 2 arguments, 1 provided


commit 508bd630466f9625ba07a3f601435e1ff824b768
Author: Lang Hames <lhames@gmail.com>
Date:   Tue Apr 15 04:40:56 2014 +0000

    [MC] Require an MCContext when constructing an MCDisassembler.
    
    This patch re-introduces the MCContext member that was removed from
    MCDisassembler in r206063, and requires that an MCContext be passed in at
    MCDisassembler construction time. (Previously the MCContext member had been
    initialized in an ad-hoc fashion after construction). The MCCContext member
    can be used by MCDisassembler sub-classes to construct constant or
    target-specific MCExprs.
    
    This patch updates disassemblers for in-tree targets, and provides the
    MCRegisterInfo instance that some disassemblers were using through the
    MCContext (previously those backends were constructing their own
    MCRegisterInfo instances).
Comment 1 Roland Scheidegger 2014-04-16 18:06:06 UTC
Fixed by f23d1160c24e16ced319d838ed3102b731c2ff03.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.