Eric, please check that we are doing the right thing with regards to the C API.
Details
Diff Detail
Event Timeline
test/Bindings/OCaml/linker.ml | ||
---|---|---|
58 | This is really terrible; this is a silent change that alters correctness of existing OCaml code, leading to double free, which will not be detected if you don't run a Debug build of LLVM (and even then I'm not sure). Could you please rename link_modules function to link_modules' (note the apostrophe) and add a bit to documentation in the mli like you did in the C API? It is probably not necessary to keep the old one for compatibility. This should be a straightforward search-and-replace job, but ping me if it causes issues. |
Couple more inline comments, but the C API stuff as far as policy is ok now.
Thanks!
-eric
include/llvm-c/Linker.h | ||
---|---|---|
44 | Typo. Best to just describe the function completely with a note of what it also doesn't do so that the end of deprecation removal is easier for LLVMLinkModules? | |
include/llvm/Linker/Linker.h | ||
51 | "deprecated" and go ahead and specify which one so that a grep will find this. |
There's no mode argument anymore--the signature should read [link_modules' dst src].