forked from OSchip/llvm-project
parent
85d55ad803
commit
ccd99b9b61
|
@ -97,7 +97,7 @@ void* MappedFile::map() {
|
|||
return base_;
|
||||
}
|
||||
|
||||
size_t MappedFile::size() {
|
||||
size_t MappedFile::size() const {
|
||||
assert(info_ && "MappedFile not initialized");
|
||||
return info_->size;
|
||||
}
|
||||
|
|
|
@ -243,14 +243,6 @@ Path::isBytecodeFile() const {
|
|||
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());
|
||||
|
|
Loading…
Reference in New Issue