mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-11 21:37:17 +03:00
LLVM pre-3.2 does not have llvm::Triple::Android.
Strangely enough, the Travis pull request status was definitely green before I merged it in.
This commit is contained in:
parent
e37f0e0d35
commit
8da8bdd209
1 changed files with 2 additions and 0 deletions
|
@ -179,11 +179,13 @@ static FloatABI::Type getARMFloatABI(const llvm::Triple &triple,
|
|||
case llvm::Triple::EABI:
|
||||
// EABI is always AAPCS, and if it was not marked 'hard', it's softfp
|
||||
return FloatABI::SoftFP;
|
||||
#if LDC_LLVM_VER >= 302
|
||||
case llvm::Triple::Android: {
|
||||
if (llvm::StringRef(llvmArchSuffix).startswith("v7"))
|
||||
return FloatABI::SoftFP;
|
||||
return FloatABI::Soft;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
// Assume "soft".
|
||||
// TODO: Warn the user we are guessing.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue