return base_;
}
-size_t MappedFile::size() {
+size_t MappedFile::size() const {
assert(info_ && "MappedFile not initialized");
return info_->size;
}
return base_;
}
-size_t MappedFile::size() {
+size_t MappedFile::size() const {
assert(info_ && "MappedFile not initialized");
return info_->size;
}
return 0 == memcmp(buffer,"llvc",4) || 0 == memcmp(buffer,"llvm",4);
}
-bool
-Path::isArchive() const {
- if (readable()) {
- return hasMagicNumber("!<arch>\012");
- }
- return false;
-}
-
bool
Path::exists() const {
DWORD attr = GetFileAttributes(path.c_str());
return 0 == memcmp(buffer,"llvc",4) || 0 == memcmp(buffer,"llvm",4);
}
-bool
-Path::isArchive() const {
- if (readable()) {
- return hasMagicNumber("!<arch>\012");
- }
- return false;
-}
-
bool
Path::exists() const {
DWORD attr = GetFileAttributes(path.c_str());