Skip to content

Commit

Permalink
Fix the windows build.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224412 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Dec 17, 2014
1 parent 2f56901 commit 9a845bd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Support/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 9a845bd

Please sign in to comment.