Path::get -> Path::toString

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18785 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2004-12-11 00:14:15 +00:00
parent 357cf5439a
commit 1fce09125c
21 changed files with 141 additions and 123 deletions

View File

@@ -44,17 +44,17 @@ void MappedFile::initialize() {
if (info_->fd_ < 0) {
delete info_;
info_ = 0;
ThrowErrno(std::string("Can't open file: ") + path_.get());
ThrowErrno(std::string("Can't open file: ") + path_.toString());
}
struct stat sbuf;
if(::fstat(info_->fd_, &info_->sbuf_) < 0) {
::close(info_->fd_);
delete info_;
info_ = 0;
ThrowErrno(std::string("Can't stat file: ") + path_.get());
ThrowErrno(std::string("Can't stat file: ") + path_.toString());
}
} else {
throw std::string("Can't open file: ") + path_.get();
throw std::string("Can't open file: ") + path_.toString();
}
}
@@ -103,7 +103,7 @@ void* MappedFile::map() {
base_ = ::mmap(0, map_size, prot, flags, info_->fd_, 0);
if (base_ == MAP_FAILED)
ThrowErrno(std::string("Can't map file:") + path_.get());
ThrowErrno(std::string("Can't map file:") + path_.toString());
}
return base_;
}