diff options
| author | Will Schmidt <will_schmidt@vnet.ibm.com> | 2014-03-24 17:27:03 +0000 |
|---|---|---|
| committer | Will Schmidt <will_schmidt@vnet.ibm.com> | 2014-03-24 17:27:03 +0000 |
| commit | d267772224928850f9bb76b990bca834bcfd30c2 (patch) | |
| tree | fa066aa63f7371adcf27926303459926d41a9935 /lib/CodeGen/CGExpr.cpp | |
| parent | ba6e4af2e5187aabc72eee071ac1b660968ab67d (diff) | |
| download | clang-d267772224928850f9bb76b990bca834bcfd30c2.tar.gz clang-d267772224928850f9bb76b990bca834bcfd30c2.tar.bz2 clang-d267772224928850f9bb76b990bca834bcfd30c2.tar.xz | |
[PPC64LE] Add a CALL_ELF macro to indicate use of the ELFv2 ABI.
Additional clarification from Uli for the background on _CALL_ELF:
"Historically GCC has provided various _CALL_... predefines depending on the
ABI currently being compiled for. (_CALL_SYSV,_CALL_AIXDESC, _CALL_DARWIN )
When we needed a new define for the current ABI, we decided on using _CALL_ELF
since the official name of the ABI is the OpenPower ElfV2 ABI, with the
current Linux ABI retro-actively being renamed the ELFv1 ABI
and so we decided on using _CALL_ELF to identify the Linux (+BSD etc.) ELF ABI,
with _CALL_ELF=1 for the v1 ABI and _CALL_ELF=2 for the v2 ABI.
(Note that this matches the gcc compiler switch -mabi=elfv1 vs. -mabi=elfv2)."
In code, a (_CALL_ELF==2) check will indicate when the ELFv2 ABI is
to be used. This is the desired default for the PPC64 LE target.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
