[LLVMbugs] [Bug 20506] New: There are two versions of llvm.global_ctors and llvm.global_dtors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 31 14:05:31 PDT 2014


            Bug ID: 20506
           Summary: There are two versions of llvm.global_ctors and
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: dexonsmith at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

After r209015, we have two versions of `llvm.global_ctors` (and
`llvm.global_dtors`).  It would be cleaner to make the third field required
(and have only one version), but the upgrade is non-trivial.  In particular,
users of the C API could currently use either the 2-field or 3-field version.

One possible upgrade path:

 1. Add C API for explicitly appending to or setting these arrays.
 2. Deprecate support for creating these arrays explicitly with normal IR
 3. After enough time has passed (and current users of the C API have had time
to transition), remove all support for the 2-field version.

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/20140731/e9ba25f1/attachment.html>

More information about the llvm-bugs mailing list