]> granicus.if.org Git - clang/commitdiff
Error on non x86 architectures.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 27 Nov 2011 15:21:33 +0000 (15:21 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 27 Nov 2011 15:21:33 +0000 (15:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145185 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/cpuid.h

index 6d58ad9dffb08f189d47b746b4ee5a0d8ef47145..b7fe7542d56c27c65582d933383f55a715974515 100644 (file)
  *===-----------------------------------------------------------------------===
  */
 
+#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) {