[LLVMbugs] [Bug 20068] New: LinkModules with PreserveSource doesn't retain type names

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 17 07:58:40 PDT 2014


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

            Bug ID: 20068
           Summary: LinkModules with PreserveSource doesn't retain type
                    names
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Linker
          Assignee: unassignedbugs at nondot.org
          Reporter: kmillar at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12674
  --> http://llvm.org/bugs/attachment.cgi?id=12674&action=edit
Code to reproduce the bug.

In the attached example, calling:
   Linker::LinkModules(dest, src, Linker::PreserveSource, 0);
removes the type names from the src module, making them anonymous and
preventing src from being used to link to other modules.


src module before linking:
%mytype = type { i8 }

define %mytype @baz(%mytype %bar) {
  ret %mytype %bar
}


src module after linking:
%0 = type { i8 }

define %0 @baz(%0 %bar) {
  ret %0 %bar
}



$ llvm-config --version
3.4

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140617/05ae1d90/attachment.html>


More information about the llvm-bugs mailing list