[llvm] r224412 - Fix the windows build.

Rafael Espindola rafael.espindola at gmail.com
Tue Dec 16 18:42:21 PST 2014


Author: rafael
Date: Tue Dec 16 20:42:20 2014
New Revision: 224412

URL: http://llvm.org/viewvc/llvm-project?rev=224412&view=rev
Log:
Fix the windows build.

Modified:
    llvm/trunk/lib/Support/Host.cpp

Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=224412&r1=224411&r2=224412&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Tue Dec 16 20:42:20 2014
@@ -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 rea
     return -1;
   return Ret;
 }
+#endif
 
 #if defined(i386) || defined(__i386__) || defined(__x86__) || defined(_M_IX86)\
  || defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)





More information about the llvm-commits mailing list