Fix recent breakage of win32 build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18876 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jeff Cohen 2004-12-13 06:26:35 +00:00
parent efd6bb37a3
commit 3265369ff5
4 changed files with 2 additions and 18 deletions

View File

@ -97,7 +97,7 @@ void* MappedFile::map() {
return base_; return base_;
} }
size_t MappedFile::size() { size_t MappedFile::size() const {
assert(info_ && "MappedFile not initialized"); assert(info_ && "MappedFile not initialized");
return info_->size; return info_->size;
} }

View File

@ -97,7 +97,7 @@ void* MappedFile::map() {
return base_; return base_;
} }
size_t MappedFile::size() { size_t MappedFile::size() const {
assert(info_ && "MappedFile not initialized"); assert(info_ && "MappedFile not initialized");
return info_->size; return info_->size;
} }

View File

@ -243,14 +243,6 @@ Path::isBytecodeFile() const {
return 0 == memcmp(buffer,"llvc",4) || 0 == memcmp(buffer,"llvm",4); return 0 == memcmp(buffer,"llvc",4) || 0 == memcmp(buffer,"llvm",4);
} }
bool
Path::isArchive() const {
if (readable()) {
return hasMagicNumber("!<arch>\012");
}
return false;
}
bool bool
Path::exists() const { Path::exists() const {
DWORD attr = GetFileAttributes(path.c_str()); DWORD attr = GetFileAttributes(path.c_str());

View File

@ -243,14 +243,6 @@ Path::isBytecodeFile() const {
return 0 == memcmp(buffer,"llvc",4) || 0 == memcmp(buffer,"llvm",4); return 0 == memcmp(buffer,"llvc",4) || 0 == memcmp(buffer,"llvm",4);
} }
bool
Path::isArchive() const {
if (readable()) {
return hasMagicNumber("!<arch>\012");
}
return false;
}
bool bool
Path::exists() const { Path::exists() const {
DWORD attr = GetFileAttributes(path.c_str()); DWORD attr = GetFileAttributes(path.c_str());