[LLVMbugs] [Bug 14362] New: MC Disassembler C interface violates layering by pulling all targets into libLLVMMCDisassembler

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 16 09:53:48 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14362

             Bug #: 14362
           Summary: MC Disassembler C interface violates layering by
                    pulling all targets into libLLVMMCDisassembler
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target Description Classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: benny.kra at gmail.com
                CC: chandlerc at gmail.com, enderby at apple.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This breaks a shared library CMake build.

See lib/MC/MCDisassembler/Disassembler.cpp:41

The code is there because otool(1) can't call the initializations routines from
libLTO.

Possible fixes include:
- Call the inintialization routines for the targets supported by otool
manually, it's only X86 and ARM so this could be hardcoded.
- Add an initialization wrapper at the libLTO level and call that from otool.
libLTO is allowed to depend on this stuff.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list