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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to