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

Reply via email to