summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-08-22 15:14:45 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-08-22 15:14:45 +0000
commit37693da119853a4b2a31df4a6b7213043fe97e1a (patch)
tree65b28fd79bd314a3d3ee813fc12fa1246cfa38da
parent5f268555b967fccbfab6e7b69305d74006116927 (diff)
downloadllvm-37693da119853a4b2a31df4a6b7213043fe97e1a.tar.gz
llvm-37693da119853a4b2a31df4a6b7213043fe97e1a.tar.bz2
llvm-37693da119853a4b2a31df4a6b7213043fe97e1a.tar.xz
Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189020 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/Windows/Path.inc6
-rw-r--r--unittests/Support/MemoryBufferTest.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index 093f374a29..95caaa58d7 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -793,7 +793,7 @@ mapped_file_region::mapped_file_region(const Twine &path,
mapmode mode,
uint64_t length,
uint64_t offset,
- error_code &ec)
+ error_code &ec)
: Mode(mode)
, Size(length)
, Mapping()
@@ -995,7 +995,7 @@ error_code detail::directory_iterator_increment(detail::DirIterState &it) {
return error_code::success();
}
-error_code map_file_pages(const Twine &path, off_t file_offset, size_t size,
+error_code map_file_pages(const Twine &path, off_t file_offset, size_t size,
bool map_writable, void *&result) {
assert(0 && "NOT IMPLEMENTED");
return windows_error::invalid_function;
@@ -1055,7 +1055,7 @@ error_code openFileForWrite(const Twine &Name, int &ResultFD,
DWORD CreationDisposition;
if (Flags & F_Excl)
CreationDisposition = CREATE_NEW;
- else if (Flags & F_Append)
+ else if (Flags & F_Append)
CreationDisposition = OPEN_ALWAYS;
else
CreationDisposition = CREATE_ALWAYS;
diff --git a/unittests/Support/MemoryBufferTest.cpp b/unittests/Support/MemoryBufferTest.cpp
index ce0ff377d9..252d2b555f 100644
--- a/unittests/Support/MemoryBufferTest.cpp
+++ b/unittests/Support/MemoryBufferTest.cpp
@@ -112,7 +112,7 @@ void MemoryBufferTest::testGetOpenFileSlice(bool Reopen) {
SmallString<64> TestPath;
// Create a temporary file and write data into it.
sys::fs::createTemporaryFile("prefix", "temp", TestFD, TestPath);
- // OF is responsible for closing the file; If the file is not
+ // OF is responsible for closing the file; If the file is not
// reopened, it will be unbuffered so that the results are
// immediately visible through the fd.
raw_fd_ostream OF(TestFD, true, !Reopen);