aboutsummaryrefslogtreecommitdiff
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorMark Seaborn <mseaborn@chromium.org>2012-10-10 17:44:43 -0700
committerMark Seaborn <mseaborn@chromium.org>2012-10-10 17:44:43 -0700
commit7ef7d6db32b8a009c749a4d4f070cc7a72b1f3ff (patch)
tree8cc55ec3c0a25d7631ec166a2654585e3d5b540d /lib/Bitcode
parentff0566a629426809a704bc118c149dca569a5614 (diff)
PNaCl: Add a pass to convert llvm.global_ctors to __init_array_start/end
This pass converts LLVM's special symbols llvm.global_ctors and llvm.global_dtors to concrete arrays, __init_array_start/end and __fini_array_start/end, that are usable by a C library. The pass sorts the contents of global_ctors/dtors according to the priority values they contain and removes the priority values. This pass will allow us to simplify the PNaCl ABI so that less is done at translation time. BUG= http://code.google.com/p/nativeclient/issues/detail?id=3018 TEST=test/Transforms/NaCl/expand-ctors*.ll Review URL: https://codereview.chromium.org/10977030
Diffstat (limited to 'lib/Bitcode')
0 files changed, 0 insertions, 0 deletions