summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-12-17 02:42:20 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-12-17 02:42:20 +0000
commit81adfb5c2e055d772fbb5e35667a0607ba5caca7 (patch)
treef1889bfce0b333db226f9ef70c28b4e3e83190bd /llvm/lib/Support/Host.cpp
parent4d2de1b03fdeffd6d2217d2f5e7eccb113930bd8 (diff)
downloadbcm5719-llvm-81adfb5c2e055d772fbb5e35667a0607ba5caca7.tar.gz
bcm5719-llvm-81adfb5c2e055d772fbb5e35667a0607ba5caca7.zip
Fix the windows build.
llvm-svn: 224412
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r--llvm/lib/Support/Host.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index a5316697cc5..6b932130fb5 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud