From: Sean Silva Date: Thu, 11 Jun 2015 23:34:13 +0000 (+0000) Subject: [cleanup] Remove some unused #ifdef's X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16c0d996040fcd17a66e4a12416d830daad02fa7;p=clang [cleanup] Remove some unused #ifdef's 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 --- diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h index 37e19e1e27..ac0d7a15e5 100644 --- a/include/clang/Basic/FileManager.h +++ b/include/clang/Basic/FileManager.h @@ -25,16 +25,8 @@ #include "llvm/ADT/StringRef.h" #include "llvm/Support/Allocator.h" #include -// FIXME: Enhance libsystem to support inode and other fields in stat. -#include #include -#ifdef _MSC_VER -typedef unsigned short mode_t; -#endif - -struct stat; - namespace llvm { class MemoryBuffer; } diff --git a/lib/Basic/FileSystemStatCache.cpp b/lib/Basic/FileSystemStatCache.cpp index 83e42bdb84..187ea37e0c 100644 --- a/lib/Basic/FileSystemStatCache.cpp +++ b/lib/Basic/FileSystemStatCache.cpp @@ -15,19 +15,8 @@ #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 -#include -#else -#include -#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,