Rename Path::get -> Path::toString
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18802 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/System/Win32/MappedFile.cpp b/lib/System/Win32/MappedFile.cpp
index 237e196..d81ef6a 100644
--- a/lib/System/Win32/MappedFile.cpp
+++ b/lib/System/Win32/MappedFile.cpp
@@ -42,7 +42,7 @@
if (info_->hFile == INVALID_HANDLE_VALUE) {
delete info_;
info_ = NULL;
- ThrowError(std::string("Can't open file: ") + path_.get());
+ ThrowError(std::string("Can't open file: ") + path_.toString());
}
LARGE_INTEGER size;
@@ -51,7 +51,7 @@
CloseHandle(info_->hFile);
delete info_;
info_ = NULL;
- ThrowError(std::string("Can't get size of file: ") + path_.get());
+ ThrowError(std::string("Can't get size of file: ") + path_.toString());
}
}
@@ -84,14 +84,14 @@
prot = PAGE_READWRITE;
info_->hMapping = CreateFileMapping(info_->hFile, NULL, prot, 0, 0, NULL);
if (info_->hMapping == NULL)
- ThrowError(std::string("Can't map file: ") + path_.get());
+ ThrowError(std::string("Can't map file: ") + path_.toString());
prot = (options_ & WRITE_ACCESS) ? FILE_MAP_WRITE : FILE_MAP_READ;
base_ = MapViewOfFileEx(info_->hMapping, prot, 0, 0, 0, NULL);
if (base_ == NULL) {
CloseHandle(info_->hMapping);
info_->hMapping = NULL;
- ThrowError(std::string("Can't map file: ") + path_.get());
+ ThrowError(std::string("Can't map file: ") + path_.toString());
}
}
return base_;
@@ -117,9 +117,9 @@
LARGE_INTEGER eof;
eof.QuadPart = new_size;
if (!SetFilePointerEx(info_->hFile, eof, NULL, FILE_BEGIN))
- ThrowError(std::string("Can't set end of file: ") + path_.get());
+ ThrowError(std::string("Can't set end of file: ") + path_.toString());
if (!SetEndOfFile(info_->hFile))
- ThrowError(std::string("Can't set end of file: ") + path_.get());
+ ThrowError(std::string("Can't set end of file: ") + path_.toString());
info_->size = new_size;
}