Restore the capability to manipulate datalayout from the C API
authorAmaury Sechet <deadalnix@gmail.com>
Tue, 16 Feb 2016 05:11:24 +0000 (05:11 +0000)
committerAmaury Sechet <deadalnix@gmail.com>
Tue, 16 Feb 2016 05:11:24 +0000 (05:11 +0000)
commit5590967610afa5fcc79386e08acc4d0fad5b6b9f
tree79b584bf548d4bc6d19e0656121a58dcb5870757
parent6615654f565c3a19f1f8a6e74ccdc723fd0c71d3
Restore the capability to manipulate datalayout from the C API

Summary:
This consist in variosu addition to the C API:

  LLVMTargetDataRef LLVMGetModuleDataLayout(LLVMModuleRef M);
  void LLVMSetModuleDataLayout(LLVMModuleRef M, LLVMTargetDataRef DL);
  LLVMTargetDataRef LLVMCreateTargetMachineData(LLVMTargetMachineRef T);

Reviewers: joker.eph, Wallbraker, echristo

Subscribers: axw

Differential Revision: http://reviews.llvm.org/D17255

llvm-svn: 260936
llvm/include/llvm-c/Target.h
llvm/include/llvm-c/TargetMachine.h
llvm/lib/Target/Target.cpp
llvm/lib/Target/TargetMachineC.cpp
llvm/test/Bindings/llvm-c/echo.ll
llvm/tools/llvm-c-test/echo.cpp