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:
David Nadlinger 2013-05-11 21:42:23 +02:00
parent e37f0e0d35
commit 8da8bdd209

View file

@ -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.