[LLVMbugs] [Bug 5152] New: llvm-ld removes the reference to global variable from debug info metadata.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Oct 7 22:08:58 PDT 2009


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

           Summary: llvm-ld removes the reference to global variable from
                    debug info metadata.
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-ld
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sanjiv.gupta at microchip.com
                CC: dpatel at apple.com, llvmbugs at cs.uiuc.edu,
                    sanjiv.gupta at microchip.com


Created an attachment (id=3626)
 --> (http://llvm.org/bugs/attachment.cgi?id=3626)
When llvm-ld processes this bitcode file, it corrupts reference to global
variable from metadata.

Clang generates metadata for global variable which has reference to the global
variable. When bitcode generated by clang is passed to llvm-ld with
-disable-opt option, the reference to global variable in metadata is set to
null.

!0 = metadata !{i32 458804, i32 0, metadata !1, metadata !"i", metadata !"i",
metadata !"", metadata !1, i32 1, metadata !2, i1 false, i1 true, null};
[DW_TAG_variable ]

The last field in metadata is null.


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