[cfe-commits] r145185 - /cfe/trunk/lib/Headers/cpuid.h

Rafael Espindola rafael.espindola at gmail.com
Sun Nov 27 07:21:34 PST 2011


Author: rafael
Date: Sun Nov 27 09:21:33 2011
New Revision: 145185

URL: http://llvm.org/viewvc/llvm-project?rev=145185&view=rev
Log:
Error on non x86 architectures.

Modified:
    cfe/trunk/lib/Headers/cpuid.h

Modified: cfe/trunk/lib/Headers/cpuid.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/cpuid.h?rev=145185&r1=145184&r2=145185&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/cpuid.h (original)
+++ cfe/trunk/lib/Headers/cpuid.h Sun Nov 27 09:21:33 2011
@@ -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) {





More information about the cfe-commits mailing list