浏览代码

Remove unused sys/stat.h includes

The facility was abstracted to LLVM in r187364.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212441 91177308-0d34-0410-b5e6-96231b3b80d8
Alp Toker 11 年之前
父节点
当前提交
5676ff327f

+ 0 - 2
include/clang/Basic/FileSystemStatCache.h

@@ -19,8 +19,6 @@
 #include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringMap.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/FileSystem.h"
 #include <memory>
 #include <memory>
-#include <sys/stat.h>
-#include <sys/types.h>
 
 
 namespace clang {
 namespace clang {
 
 

+ 0 - 1
include/clang/Serialization/ASTReader.h

@@ -46,7 +46,6 @@
 #include <map>
 #include <map>
 #include <memory>
 #include <memory>
 #include <string>
 #include <string>
-#include <sys/stat.h>
 #include <utility>
 #include <utility>
 #include <vector>
 #include <vector>
 
 

+ 0 - 3
lib/Basic/FileManager.cpp

@@ -32,9 +32,6 @@
 
 
 using namespace clang;
 using namespace clang;
 
 
-// FIXME: Enhance libsystem to support inode and other fields.
-#include <sys/stat.h>
-
 /// NON_EXISTENT_DIR - A special value distinct from null that is used to
 /// NON_EXISTENT_DIR - A special value distinct from null that is used to
 /// represent a dir name that doesn't exist on the disk.
 /// represent a dir name that doesn't exist on the disk.
 #define NON_EXISTENT_DIR reinterpret_cast<DirectoryEntry*>((intptr_t)-1)
 #define NON_EXISTENT_DIR reinterpret_cast<DirectoryEntry*>((intptr_t)-1)

+ 0 - 1
lib/Basic/SourceManager.cpp

@@ -26,7 +26,6 @@
 #include <algorithm>
 #include <algorithm>
 #include <cstring>
 #include <cstring>
 #include <string>
 #include <string>
-#include <sys/stat.h>
 
 
 using namespace clang;
 using namespace clang;
 using namespace SrcMgr;
 using namespace SrcMgr;

+ 0 - 2
lib/Driver/Compilation.cpp

@@ -17,8 +17,6 @@
 #include "llvm/Option/ArgList.h"
 #include "llvm/Option/ArgList.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include <errno.h>
-#include <sys/stat.h>
 
 
 using namespace clang::driver;
 using namespace clang::driver;
 using namespace clang;
 using namespace clang;

+ 0 - 1
lib/Driver/Tools.cpp

@@ -38,7 +38,6 @@
 #include "llvm/Support/Process.h"
 #include "llvm/Support/Process.h"
 #include "llvm/Support/Program.h"
 #include "llvm/Support/Program.h"
 #include "llvm/Support/raw_ostream.h"
 #include "llvm/Support/raw_ostream.h"
-#include <sys/stat.h>
 
 
 using namespace clang::driver;
 using namespace clang::driver;
 using namespace clang::driver::tools;
 using namespace clang::driver::tools;

+ 0 - 1
lib/Frontend/ASTUnit.cpp

@@ -47,7 +47,6 @@
 #include <atomic>
 #include <atomic>
 #include <cstdio>
 #include <cstdio>
 #include <cstdlib>
 #include <cstdlib>
-#include <sys/stat.h>
 using namespace clang;
 using namespace clang;
 
 
 using llvm::TimeRecord;
 using llvm::TimeRecord;

+ 0 - 1
lib/Serialization/ASTReaderInternals.h

@@ -17,7 +17,6 @@
 #include "clang/Serialization/ASTBitCodes.h"
 #include "clang/Serialization/ASTBitCodes.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/Endian.h"
 #include "llvm/Support/OnDiskHashTable.h"
 #include "llvm/Support/OnDiskHashTable.h"
-#include <sys/stat.h>
 #include <utility>
 #include <utility>
 
 
 namespace clang {
 namespace clang {