Fix recent breakage of win32 build

llvm-svn: 18876
This commit is contained in:
Jeff Cohen 2004-12-13 06:26:35 +00:00
parent 85d55ad803
commit ccd99b9b61
2 changed files with 1 additions and 9 deletions
llvm/lib/System/Win32

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());