Fix recent breakage of win32 build
authorJeff Cohen <jeffc@jolt-lang.org>
Mon, 13 Dec 2004 06:26:35 +0000 (06:26 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Mon, 13 Dec 2004 06:26:35 +0000 (06:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18876 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Win32/MappedFile.cpp
lib/System/Win32/MappedFile.inc
lib/System/Win32/Path.cpp
lib/System/Win32/Path.inc

index d81ef6a04899783c6448eb046d7c01c707b4dea0..982a3b239007e9b7a1e9ee48771b89921f2d4c9c 100644 (file)
@@ -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;
 }
index d81ef6a04899783c6448eb046d7c01c707b4dea0..982a3b239007e9b7a1e9ee48771b89921f2d4c9c 100644 (file)
@@ -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;
 }
index cb4594194a848682368bd2cdd5c32eb00f2fa4e4..095417f0fec53b9e26fa9c20bbe2ab6af6496b4e 100644 (file)
@@ -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());
index cb4594194a848682368bd2cdd5c32eb00f2fa4e4..095417f0fec53b9e26fa9c20bbe2ab6af6496b4e 100644 (file)
@@ -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());