diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-16 19:44:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-16 19:44:17 +0000 |
commit | 6d35481c94ae2a4118547c93f8f27bd18afa5d93 (patch) | |
tree | ed7a437e24480b3cfd193bd2fbaf0e874e751a66 /llvm/unittests/Support/Path.cpp | |
parent | 7987088a8ab4c30ce3327bcf2ace53f4b24f133c (diff) | |
download | llvm-6d35481c94ae2a4118547c93f8f27bd18afa5d93.zip llvm-6d35481c94ae2a4118547c93f8f27bd18afa5d93.tar.gz llvm-6d35481c94ae2a4118547c93f8f27bd18afa5d93.tar.bz2 |
Add a wrapper for open.
This centralizes the handling of O_BINARY and opens the way for hiding more
differences (like how open behaves with directories).
llvm-svn: 186447
Diffstat (limited to 'llvm/unittests/Support/Path.cpp')
-rw-r--r-- | llvm/unittests/Support/Path.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index 9a68e08..7a9b8ae 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -350,8 +350,7 @@ TEST_F(FileSystemTest, Magic) { SmallString<128> file_pathname(TestDirectory); path::append(file_pathname, i->filename); std::string ErrMsg; - raw_fd_ostream file(file_pathname.c_str(), ErrMsg, - raw_fd_ostream::F_Binary); + raw_fd_ostream file(file_pathname.c_str(), ErrMsg, sys::fs::F_Binary); ASSERT_FALSE(file.has_error()); StringRef magic(i->magic_str, i->magic_str_len); file << magic; |