From 9a845bdcd58dc99a5776eb204eb7b115219f4a64 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 17 Dec 2014 02:42:20 +0000 Subject: [PATCH] Fix the windows build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224412 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Host.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index a5316697cc5..6b932130fb5 100644 --- 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)