Go to file
Mehdi Amini 0ab4b5b52e Fix LLVM C API for DataLayout
We removed access to the DataLayout on the TargetMachine and
deprecated the C API function LLVMGetTargetMachineData() in r243114.
However the way I tried to be backward compatible was broken: I
changed the wrapper of the TargetMachine to be a structure that
includes the DataLayout as well. However the TargetMachine is also
wrapped by the ExecutionEngine, in the more classic way. A client
using the TargetMachine wrapped by the ExecutionEngine and trying
to get the DataLayout would break.

It seems tricky to solve the problem completely in the C API
implementation. This patch tries to address this backward
compatibility in a more lighter way in the C++ API. The C API is
restored in its original state and the removed C++ API is
reintroduced, but privately. The C API is friended to the
TargetMachine and should be the only consumer for this API.

Reviewers: ributzka

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

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 246082
2015-08-26 21:16:29 +00:00
clang [ARM] Error out if float-ab=hard and abi=apcs-gnu on macho platforms. 2015-08-26 19:00:11 +00:00
clang-tools-extra Fix another LoopConvert fail. 2015-08-26 17:08:24 +00:00
compiler-rt [Sanitizer] Test churn: use %env_tool_opts in sanitizer_common lit tests. 2015-08-26 19:29:07 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Update mailing list reference. 2015-08-24 22:43:24 +00:00
libcxx [libcxx] Remove installation rules on Darwin when it would overwrite the system installation. 2015-08-26 20:18:21 +00:00
libcxxabi Fix or disable C++11 tests in C++03 mode 2015-08-20 01:22:17 +00:00
libunwind unwind: fix invalid memory access 2015-08-21 03:21:31 +00:00
lld git-clang-format the constructor to reduce the diff in a merge. 2015-08-26 20:46:55 +00:00
lldb Don't throw an exception when module cleanup fails. 2015-08-26 19:44:56 +00:00
llgo Update to new lists.llvm.org 2015-08-05 04:03:05 +00:00
llvm Fix LLVM C API for DataLayout 2015-08-26 21:16:29 +00:00
openmp Put taskdata variables under KMP_DEBUG guards. 2015-08-26 20:02:21 +00:00
polly [Vectorizer] Detect strides in multi-dimensional arrays 2015-08-24 22:20:46 +00:00