summaryrefslogtreecommitdiff
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-24 03:07:41 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-24 03:07:41 +0000
commit69aeeee4e1b58c76cdef06b3cbe0fcad2556b9a2 (patch)
tree749886ebe611d9c995103bef3d0574075e5c6f17 /include/llvm/Support
parent6822655f561a62ebafd3ce35c62fefebcea5f1b1 (diff)
downloadllvm-69aeeee4e1b58c76cdef06b3cbe0fcad2556b9a2.tar.gz
llvm-69aeeee4e1b58c76cdef06b3cbe0fcad2556b9a2.tar.bz2
llvm-69aeeee4e1b58c76cdef06b3cbe0fcad2556b9a2.tar.xz
Share a createUniqueEntity implementation between unix and windows.
The only extra bit of functionality that had to be exposed for this be be implemented in Path.cpp is opening a file in rw mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/FileSystem.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index 176f935933..6fa4728f3d 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -580,7 +580,10 @@ enum OpenFlags {
/// F_Binary - The file should be opened in binary mode on platforms that
/// make this distinction.
- F_Binary = 4
+ F_Binary = 4,
+
+ /// Open the file for read and write.
+ F_RW = 8
};
inline OpenFlags operator|(OpenFlags A, OpenFlags B) {