]> granicus.if.org Git - clang/commitdiff
[Attr] Make TargetWindows and TargetMicrosoftCXXABI match on aarch64 as well
authorMartin Storsjo <martin@martin.st>
Mon, 31 Jul 2017 20:40:59 +0000 (20:40 +0000)
committerMartin Storsjo <martin@martin.st>
Mon, 31 Jul 2017 20:40:59 +0000 (20:40 +0000)
Differential Revision: https://reviews.llvm.org/D36100

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@309620 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Attr.td
test/Sema/dllimport.c

index f8d06e24b150815d84c15a77a1a9c4ba384dbdba..3de9e8e8dddf368b21fcf4aee61a4aee70522d87 100644 (file)
@@ -268,10 +268,10 @@ def TargetMips : TargetArch<["mips", "mipsel"]>;
 def TargetMSP430 : TargetArch<["msp430"]>;
 def TargetX86 : TargetArch<["x86"]>;
 def TargetAnyX86 : TargetArch<["x86", "x86_64"]>;
-def TargetWindows : TargetArch<["x86", "x86_64", "arm", "thumb"]> {
+def TargetWindows : TargetArch<["x86", "x86_64", "arm", "thumb", "aarch64"]> {
   let OSes = ["Win32"];
 }
-def TargetMicrosoftCXXABI : TargetArch<["x86", "x86_64", "arm", "thumb"]> {
+def TargetMicrosoftCXXABI : TargetArch<["x86", "x86_64", "arm", "thumb", "aarch64"]> {
   let CXXABIs = ["Microsoft"];
 }
 
index a7fb00e3f773c5530d92ec6b5a76cb242faea109..d05ed6ef3fa57dddf1cf522cc56377d38ddb44ef 100644 (file)
@@ -2,6 +2,7 @@
 // RUN: %clang_cc1 -triple x86_64-win32   -fsyntax-only -fms-extensions -verify -std=c11 -DMS %s
 // RUN: %clang_cc1 -triple i686-mingw32   -fsyntax-only -fms-extensions -verify -std=c11 -DGNU %s
 // RUN: %clang_cc1 -triple x86_64-mingw32 -fsyntax-only -fms-extensions -verify -std=c99 -DGNU %s
+// RUN: %clang_cc1 -triple aarch64-win32  -fsyntax-only -fms-extensions -verify -std=c99 -DMS %s
 
 // Invalid usage.
 __declspec(dllimport) typedef int typedef1;