[llvm] r224311 - Convert a member variable to a local variable. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Mon Dec 15 18:53:35 PST 2014
Author: rafael
Date: Mon Dec 15 20:53:35 2014
New Revision: 224311
URL: http://llvm.org/viewvc/llvm-project?rev=224311&view=rev
Log:
Convert a member variable to a local variable. NFC.
Modified:
llvm/trunk/include/llvm/Support/FileSystem.h
llvm/trunk/lib/Support/Windows/Path.inc
Modified: llvm/trunk/include/llvm/Support/FileSystem.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FileSystem.h?rev=224311&r1=224310&r2=224311&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FileSystem.h (original)
+++ llvm/trunk/include/llvm/Support/FileSystem.h Mon Dec 15 20:53:35 2014
@@ -641,7 +641,6 @@ private:
void *Mapping;
#ifdef LLVM_ON_WIN32
void *FileHandle;
- void *FileMappingHandle;
#endif
std::error_code init(int FD, uint64_t Offset, mapmode Mode);
Modified: llvm/trunk/lib/Support/Windows/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Path.inc?rev=224311&r1=224310&r2=224311&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Path.inc (original)
+++ llvm/trunk/lib/Support/Windows/Path.inc Mon Dec 15 20:53:35 2014
@@ -471,7 +471,7 @@ std::error_code mapped_file_region::init
case priv: flprotect = PAGE_WRITECOPY; break;
}
- FileMappingHandle =
+ HANDLE FileMappingHandle =
::CreateFileMappingW(FileHandle, 0, flprotect,
(Offset + Size) >> 32,
(Offset + Size) & 0xffffffff,
@@ -519,7 +519,7 @@ std::error_code mapped_file_region::init
mapped_file_region::mapped_file_region(int fd, mapmode mode, uint64_t length,
uint64_t offset, std::error_code &ec)
: Size(length), Mapping(),
- FileHandle(INVALID_HANDLE_VALUE), FileMappingHandle() {
+ FileHandle(INVALID_HANDLE_VALUE) {
FileHandle = reinterpret_cast<HANDLE>(_get_osfhandle(fd));
if (FileHandle == INVALID_HANDLE_VALUE) {
ec = make_error_code(errc::bad_file_descriptor);
@@ -528,7 +528,7 @@ mapped_file_region::mapped_file_region(i
ec = init(fd, offset, mode);
if (ec) {
- Mapping = FileMappingHandle = 0;
+ Mapping = 0;
FileHandle = INVALID_HANDLE_VALUE;
}
}
More information about the llvm-commits
mailing list