aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
diff options
context:
space:
mode:
authorTimotej Kapus <kapust@fb.com>2021-03-17 12:47:32 +0000
committerJosh Berdine <josh@berdine.net>2021-03-17 13:39:35 +0000
commit2571a0936719b50facfee492ccbaf4916272be36 (patch)
treedae2d9828f6f81e2c83e5b87839457356d183a46 /llvm/tools/llvm-objcopy/llvm-objcopy.cpp
parent4a8c01a02b46d8cab3f7b70b7d2b1c1f75d5aa80 (diff)
downloadllvm-2571a0936719b50facfee492ccbaf4916272be36.zip
llvm-2571a0936719b50facfee492ccbaf4916272be36.tar.gz
llvm-2571a0936719b50facfee492ccbaf4916272be36.tar.bz2
[OCaml] Handle nullptr in Llvm.global_initializer
LLVMGetInitializer returns nullptr in case there is no initializer. There is not much that can be done with nullptr in OCaml, not even test if it is null. Also, there does not seem to be a C or OCaml API to test if there is an initializer. So this diff changes Llvm.global_initializer to return an option. Reviewed By: whitequark Differential Revision: https://reviews.llvm.org/D65195
Diffstat (limited to 'llvm/tools/llvm-objcopy/llvm-objcopy.cpp')
0 files changed, 0 insertions, 0 deletions