]> granicus.if.org Git - clang/commitdiff
[cleanup] Remove some unused #ifdef's
authorSean Silva <chisophugis@gmail.com>
Thu, 11 Jun 2015 23:34:13 +0000 (23:34 +0000)
committerSean Silva <chisophugis@gmail.com>
Thu, 11 Jun 2015 23:34:13 +0000 (23:34 +0000)
This is all going through the VFS layer now, so there's nothing
platform-specific here.

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

include/clang/Basic/FileManager.h
lib/Basic/FileSystemStatCache.cpp

index 37e19e1e279d13bb6f9b78efe8ada3ad9f909605..ac0d7a15e568fe30d70ec93210c8a436d47933b9 100644 (file)
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Support/Allocator.h"
 #include <memory>
-// FIXME: Enhance libsystem to support inode and other fields in stat.
-#include <sys/types.h>
 #include <map>
 
-#ifdef _MSC_VER
-typedef unsigned short mode_t;
-#endif
-
-struct stat;
-
 namespace llvm {
 class MemoryBuffer;
 }
index 83e42bdb8483ef12b223093f86f89f851e972fd0..187ea37e0c28fbb6ffd25cc0bdf1a581b579d3b8 100644 (file)
 #include "clang/Basic/VirtualFileSystem.h"
 #include "llvm/Support/Path.h"
 
-// FIXME: This is terrible, we need this for ::close.
-#if !defined(_MSC_VER) && !defined(__MINGW32__)
-#include <unistd.h>
-#include <sys/uio.h>
-#else
-#include <io.h>
-#endif
 using namespace clang;
 
-#if defined(_MSC_VER)
-#define S_ISDIR(s) ((_S_IFDIR & s) !=0)
-#endif
-
 void FileSystemStatCache::anchor() { }
 
 static void copyStatusToFileData(const vfs::Status &Status,