[LLVMbugs] [Bug 10553] New: Metadata nodes duplicated by llvm-ld

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 1 22:33:40 PDT 2011


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

           Summary: Metadata nodes duplicated by llvm-ld
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Linker
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: viridia at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=6989)
 --> (http://llvm.org/bugs/attachment.cgi?id=6989)
Bitcode file that demonstrates the problem

llvm-ld is creating duplicate metadata nodes. To demonstrate the problem, use
the bitcode file "ValueRefTest.bc" in the attachment.

To see the problem in action:

    llvm-ld -disable-opt -link-as-library -o - ValueRefTest.bc | llvm-dis |
more

Search for "main" (with quotes) and you'll see that there are two
DW_TAG_subprogram entries for the function. (This appears to happen with all
functions, not just "main").

To verify that the duplicate entries are not in the original file, do:

    llvm-dis -o - ValueRefTest.bc | more

The same search will show that there is only one DW_TAG_subprogram entry for
"main".

-- 
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