This is an archive of the discontinued LLVM Phabricator instance.

[OCaml] Reinstate data_layout
ClosedPublic

Authored by jketema on Mar 31 2016, 3:33 PM.

Details

Summary

Expose LLVMCreateTargetMachineData as data_layout

Similar to r263530. From that commit: "LLVMGetTargetDataLayout was removed from the C API, and then TargetMachine.TargetData was removed. Later, LLVMCreateTargetMachineData was added to the C API"

The original version of this function used CAMLparam and friends as the only function in target_llvm.c It's omitted here, which may be incorrect.

Diff Detail

Repository
rL LLVM

Event Timeline

jketema updated this revision to Diff 52301.Mar 31 2016, 3:33 PM
jketema retitled this revision from to [OCaml] Reinstate data_layout.
jketema updated this object.
jketema added a reviewer: whitequark.
jketema added a subscriber: llvm-commits.
whitequark accepted this revision.Mar 31 2016, 11:10 PM
whitequark edited edge metadata.

LGTM. Thanks!

This revision is now accepted and ready to land.Mar 31 2016, 11:10 PM
This revision was automatically updated to reflect the committed changes.