MemoryBuffer: remove unusued definitions
authorAlp Toker <alp@nuanti.com>
Fri, 9 May 2014 08:57:06 +0000 (08:57 +0000)
committerAlp Toker <alp@nuanti.com>
Fri, 9 May 2014 08:57:06 +0000 (08:57 +0000)
These were made redundant back in r186560.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208395 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/MemoryBuffer.cpp

index 90945ab63aca20d71b00c2908f2468e454a38c29..f95383dfb293e7219968211a499ae150f709187c 100644 (file)
 #include <cstdio>
 #include <cstring>
 #include <new>
-#include <sys/stat.h>
 #include <sys/types.h>
 #if !defined(_MSC_VER) && !defined(__MINGW32__)
 #include <unistd.h>
 #else
 #include <io.h>
-// Simplistic definitinos of these macros for use in getOpenFile.
-#ifndef S_ISREG
-#define S_ISREG(x) (1)
-#endif
-#ifndef S_ISBLK
-#define S_ISBLK(x) (0)
-#endif
 #endif
 using namespace llvm;