From fc24bd15ca9b454b7796d35b54f277b1270cb28c Mon Sep 17 00:00:00 2001 From: kai Date: Sat, 7 Sep 2013 18:17:02 +0200 Subject: [PATCH] Add version identifier for AArch64 --- driver/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/driver/main.cpp b/driver/main.cpp index e97b7ba7..27b2dfe8 100644 --- a/driver/main.cpp +++ b/driver/main.cpp @@ -529,6 +529,11 @@ int main(int argc, char** argv) VersionCondition::addPredefinedGlobalIdent("ARM_Soft"); VersionCondition::addPredefinedGlobalIdent("D_SoftFloat"); break; +#if LDC_LLVM_VER >= 303 + case llvm::Triple::aarch64: + VersionCondition::addPredefinedGlobalIdent("AArch64"); + break; +#endif case llvm::Triple::mips: case llvm::Triple::mipsel: // FIXME: Detect O32/N32 variants (MIPS_{O32,N32}[_SoftFP,_HardFP]).