[Mesa-dev] [Bug 77500] New: [llvmpipe] src/gallium/auxiliary/gallivm/lp_bld_debug.cpp:230:71: error: no matching function for call to ‘llvm?=::Target::createMCDisassembler(const llvm::MCSubtargetInfo&)=?UTF-8?Q? const’

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 15 13:44:58 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=77500

          Priority: medium
            Bug ID: 77500
                CC: brianp at vmware.com, jfonseca at vmware.com,
                    sroland at vmware.com
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: [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’
          Severity: blocker
    Classification: Unclassified
                OS: All
          Reporter: vlee at freedesktop.org
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Other
           Product: Mesa

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 at 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).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140415/c8e45678/attachment-0001.html>


More information about the mesa-dev mailing list