Error on non x86 architectures.

llvm-svn: 145185
This commit is contained in:
Rafael Espindola 2011-11-27 15:21:33 +00:00
parent fd03d0b733
commit 0618d14edf
1 changed files with 4 additions and 0 deletions

View File

@ -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) {