diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-01 21:42:11 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-08-01 21:42:11 +0000 |
| commit | 0fda0f75f053ad9afdb2bb8d4ea72c5e6a49d657 (patch) | |
| tree | 97d86b501ffa4ff6252c7f2c7bc2c4d09e623362 /lib/CodeGen/CGExpr.cpp | |
| parent | 1cf9ab8ab8cf0fc72819d8aa68ba6cc328e33d05 (diff) | |
| download | clang-0fda0f75f053ad9afdb2bb8d4ea72c5e6a49d657.tar.gz clang-0fda0f75f053ad9afdb2bb8d4ea72c5e6a49d657.tar.bz2 clang-0fda0f75f053ad9afdb2bb8d4ea72c5e6a49d657.tar.xz | |
Use llvm::sys::fs::UniqueID for windows and unix.
This unifies the unix and windows versions of FileManager::UniqueDirContainer
and FileManager::UniqueFileContainer by using UniqueID.
We cannot just replace "struct stat" with llvm::sys::fs::file_status, since we
want to be able to construct fake ones, and file_status has different members
on unix and windows.
What the patch does is:
* Record only the information that clang is actually using.
* Use llvm::sys::fs::status instead of stat and fstat.
* Use llvm::sys::fs::UniqueID
* Delete the old windows versions of UniqueDirContainer and
UniqueFileContainer since the "unix" one now works on windows too.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187619 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
