projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f56901
)
Fix the windows build.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 17 Dec 2014 02:42:20 +0000
(
02:42
+0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Wed, 17 Dec 2014 02:42:20 +0000
(
02:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224412
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Host.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/Host.cpp
b/lib/Support/Host.cpp
index a5316697cc521943d2fd4f0131446e2bad3629b0..6b932130fb50fe63cfc97707226e734bf9ce2f43 100644
(file)
--- a/
lib/Support/Host.cpp
+++ b/
lib/Support/Host.cpp
@@
-49,6
+49,7
@@
using namespace llvm;
+#if defined(__linux__)
static ssize_t LLVM_ATTRIBUTE_UNUSED readCpuInfo(void *Buf, size_t Size) {
assert(0);
// Note: We cannot mmap /proc/cpuinfo here and then process the resulting
@@
-67,6
+68,7
@@
static ssize_t LLVM_ATTRIBUTE_UNUSED readCpuInfo(void *Buf, size_t Size) {
return -1;
return Ret;
}
+#endif
#if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
|| defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)