diff --git a/lib/System/Win32/MappedFile.cpp b/lib/System/Win32/MappedFile.cpp index d81ef6a0489..982a3b23900 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 d81ef6a0489..982a3b23900 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 cb4594194a8..095417f0fec 100644 --- a/lib/System/Win32/Path.cpp +++ b/lib/System/Win32/Path.cpp @@ -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("!\012"); - } - return false; -} - bool Path::exists() const { DWORD attr = GetFileAttributes(path.c_str()); diff --git a/lib/System/Win32/Path.inc b/lib/System/Win32/Path.inc index cb4594194a8..095417f0fec 100644 --- a/lib/System/Win32/Path.inc +++ b/lib/System/Win32/Path.inc @@ -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("!\012"); - } - return false; -} - bool Path::exists() const { DWORD attr = GetFileAttributes(path.c_str());