diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-11-27 15:21:33 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-11-27 15:21:33 +0000 |
commit | 0618d14edfd7a9e3d2f2e1db371b28601c2315c4 (patch) | |
tree | a10bd6c3958123bd7568a1091eea2f518937df75 | |
parent | fd03d0b733f76492664778ba669fb161855d0594 (diff) | |
download | bcm5719-llvm-0618d14edfd7a9e3d2f2e1db371b28601c2315c4.tar.gz bcm5719-llvm-0618d14edfd7a9e3d2f2e1db371b28601c2315c4.zip |
Error on non x86 architectures.
llvm-svn: 145185
-rw-r--r-- | clang/lib/Headers/cpuid.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Headers/cpuid.h b/clang/lib/Headers/cpuid.h index 6d58ad9dffb..b7fe7542d56 100644 --- a/clang/lib/Headers/cpuid.h +++ b/clang/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) { |