summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Win32/MappedFile.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-11 17:37:01 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-11 17:37:01 +0000
commit5625dec232f24215f4852e89115aba871258b206 (patch)
tree5b8c10d5cbd09dc912c976258e9c4e7c600680dd /llvm/lib/System/Win32/MappedFile.cpp
parentcc6037f8e68f14868288b249b4841bacc0f5e115 (diff)
downloadbcm5719-llvm-5625dec232f24215f4852e89115aba871258b206.tar.gz
bcm5719-llvm-5625dec232f24215f4852e89115aba871258b206.zip
Rename Path::get -> Path::toString
llvm-svn: 18802
Diffstat (limited to 'llvm/lib/System/Win32/MappedFile.cpp')
-rw-r--r--llvm/lib/System/Win32/MappedFile.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/System/Win32/MappedFile.cpp b/llvm/lib/System/Win32/MappedFile.cpp
index 237e1962fbb..d81ef6a0489 100644
--- a/llvm/lib/System/Win32/MappedFile.cpp
+++ b/llvm/lib/System/Win32/MappedFile.cpp
@@ -42,7 +42,7 @@ void MappedFile::initialize() {
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 @@ void MappedFile::initialize() {
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 @@ void* MappedFile::map() {
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 @@ void MappedFile::size(size_t new_size) {
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;
}
OpenPOWER on IntegriCloud