mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Proper support for a bastardized darwin-eabi hybird ABI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151083 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -105,6 +105,8 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &CPU,
|
||||
computeIssueWidth();
|
||||
|
||||
if (TT.find("eabi") != std::string::npos)
|
||||
// FIXME: We might want to separate AAPCS and EABI. Some systems, e.g.
|
||||
// Darwin-EABI conforms to AACPS but not the rest of EABI.
|
||||
TargetABI = ARM_ABI_AAPCS;
|
||||
|
||||
if (isAAPCS_ABI())
|
||||
@ -115,8 +117,7 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &CPU,
|
||||
else {
|
||||
IsR9Reserved = ReserveR9 | !HasV6Ops;
|
||||
UseMovt = DarwinUseMOVT && hasV6T2Ops();
|
||||
const Triple &T = getTargetTriple();
|
||||
SupportsTailCall = !T.isOSVersionLT(5, 0);
|
||||
SupportsTailCall = !getTargetTriple().isOSVersionLT(5, 0);
|
||||
}
|
||||
|
||||
if (!isThumb() || hasThumb2())
|
||||
|
Reference in New Issue
Block a user