summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows/Path.inc
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-01 00:13:31 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-01 00:13:31 +0000
commit640de72a1efbf0f1c912ede48cbf4f0e1369ef45 (patch)
tree979985458c71719c47f8473f381095f9c1814d50 /llvm/lib/Support/Windows/Path.inc
parent0235e95a4b300de025e432206652878d74021e54 (diff)
downloadbcm5719-llvm-640de72a1efbf0f1c912ede48cbf4f0e1369ef45.tar.gz
bcm5719-llvm-640de72a1efbf0f1c912ede48cbf4f0e1369ef45.zip
Revert "Add disk_space() to llvm::fs"
This reverts commit r265074 and r265068. Breaks windows build From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 265080
Diffstat (limited to 'llvm/lib/Support/Windows/Path.inc')
-rw-r--r--llvm/lib/Support/Windows/Path.inc13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
index c17c5c61b5a..98fd7b0034a 100644
--- a/llvm/lib/Support/Windows/Path.inc
+++ b/llvm/lib/Support/Windows/Path.inc
@@ -151,19 +151,6 @@ UniqueID file_status::getUniqueID() const {
return UniqueID(VolumeSerialNumber, FileID);
}
-ErrorOr<space_info> disk_space(const Twine &Path) {
- PULARGE_INTEGER Avail, Total, Free;
- if (!::GetDiskFreeSpaceExA(Path.str().c_str(), &Avail, &Total, &Free))
- return mapWindowsError(::GetLastError());
- space_info SpaceInfo;
- SpaceInfo.capacity =
- (static_cast<uint64_t>(Total.HighPart) << 32) + Total.LowPart;
- SpaceInfo.Free = (static_cast<uint64_t>(Free.HighPart) << 32) + Free.LowPart;
- SpaceInfo.available =
- (static_cast<uint64_t>(Avail.HighPart) << 32) + Avail.LowPart;
- return SpaceInfo;
-}
-
TimeValue file_status::getLastAccessedTime() const {
ULARGE_INTEGER UI;
UI.LowPart = LastAccessedTimeLow;
OpenPOWER on IntegriCloud