From: Rafael Espindola Date: Sun, 27 Nov 2011 15:21:33 +0000 (+0000) Subject: Error on non x86 architectures. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1376ba9dddccc02e8c187bbfa4c66f2c0938b0c0;p=clang Error on non x86 architectures. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145185 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/cpuid.h b/lib/Headers/cpuid.h index 6d58ad9dff..b7fe7542d5 100644 --- a/lib/Headers/cpuid.h +++ b/lib/Headers/cpuid.h @@ -21,6 +21,10 @@ *===-----------------------------------------------------------------------=== */ +#if !(__x86_64__ || __i386__) +#error this header is for x86 only +#endif + static inline int __get_cpuid (unsigned int level, unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx) {