summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitccd99b9b612cf601d3e8a2df968f6a22abdfdb1c (patch)
tree14135546a6662aadc53c554d39c87d070c80fc92 /llvm/lib
parent85d55ad803ad5408130b9db79a6bb57fbb0d270f (diff)
downloadbcm5719-llvm-ccd99b9b612cf601d3e8a2df968f6a22abdfdb1c.tar.gz
bcm5719-llvm-ccd99b9b612cf601d3e8a2df968f6a22abdfdb1c.zip
Fix recent breakage of win32 build
llvm-svn: 18876
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Win32/MappedFile.cpp2
-rw-r--r--llvm/lib/System/Win32/Path.cpp8
2 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/System/Win32/MappedFile.cpp b/llvm/lib/System/Win32/MappedFile.cpp
index d81ef6a0489..982a3b23900 100644
--- a/llvm/lib/System/Win32/MappedFile.cpp
+++ b/llvm/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/llvm/lib/System/Win32/Path.cpp b/llvm/lib/System/Win32/Path.cpp
index cb4594194a8..095417f0fec 100644
--- a/llvm/lib/System/Win32/Path.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud