aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2004-12-13 06:26:35 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2004-12-13 06:26:35 +0000
commit3265369ff528e09a71cc8f1ce20f28f65d8e2bcc (patch)
treee344d75a37a9d1f17d69768d803c14bcdb70ac5e /lib
parentefd6bb37a36c6f6d1581e9d28923c09f30cd186d (diff)
downloadexternal_llvm-3265369ff528e09a71cc8f1ce20f28f65d8e2bcc.zip
external_llvm-3265369ff528e09a71cc8f1ce20f28f65d8e2bcc.tar.gz
external_llvm-3265369ff528e09a71cc8f1ce20f28f65d8e2bcc.tar.bz2
Fix recent breakage of win32 build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/System/Win32/MappedFile.cpp2
-rw-r--r--lib/System/Win32/MappedFile.inc2
-rw-r--r--lib/System/Win32/Path.cpp8
-rw-r--r--lib/System/Win32/Path.inc8
4 files changed, 2 insertions, 18 deletions
diff --git a/lib/System/Win32/MappedFile.cpp b/lib/System/Win32/MappedFile.cpp
index d81ef6a..982a3b2 100644
--- a/lib/System/Win32/MappedFile.cpp
+++ b/lib/System/Win32/MappedFile.cpp
@@ -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;
}
diff --git a/lib/System/Win32/MappedFile.inc b/lib/System/Win32/MappedFile.inc
index d81ef6a..982a3b2 100644
--- a/lib/System/Win32/MappedFile.inc
+++ b/lib/System/Win32/MappedFile.inc
@@ -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;
}
diff --git a/lib/System/Win32/Path.cpp b/lib/System/Win32/Path.cpp
index cb45941..095417f 100644
--- a/lib/System/Win32/Path.cpp
+++ b/lib/System/Win32/Path.cpp
@@ -244,14 +244,6 @@ Path::isBytecodeFile() const {
}
bool
-Path::isArchive() const {
- if (readable()) {
- return hasMagicNumber("!<arch>\012");
- }
- return false;
-}
-
-bool
Path::exists() const {
DWORD attr = GetFileAttributes(path.c_str());
return attr != INVALID_FILE_ATTRIBUTES;
diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc
index cb45941..095417f 100644
--- a/lib/System/Win32/Path.inc
+++ b/lib/System/Win32/Path.inc
@@ -244,14 +244,6 @@ Path::isBytecodeFile() const {
}
bool
-Path::isArchive() const {
- if (readable()) {
- return hasMagicNumber("!<arch>\012");
- }
- return false;
-}
-
-bool
Path::exists() const {
DWORD attr = GetFileAttributes(path.c_str());
return attr != INVALID_FILE_ATTRIBUTES;