diff options
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Analysis/DOTGraphTraitsPass.h | 4 | ||||
-rw-r--r-- | llvm/include/llvm/Support/FileSystem.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/include/llvm/Analysis/DOTGraphTraitsPass.h b/llvm/include/llvm/Analysis/DOTGraphTraitsPass.h index 6a6abc20e03..fc3fc708df6 100644 --- a/llvm/include/llvm/Analysis/DOTGraphTraitsPass.h +++ b/llvm/include/llvm/Analysis/DOTGraphTraitsPass.h @@ -69,7 +69,7 @@ public: errs() << "Writing '" << Filename << "'..."; - raw_fd_ostream File(Filename.c_str(), ErrorInfo, sys::fs::F_None); + raw_fd_ostream File(Filename.c_str(), ErrorInfo, sys::fs::F_Text); std::string GraphName = DOTGraphTraits<GraphT>::getGraphName(Graph); std::string Title = GraphName + " for '" + F.getName().str() + "' function"; @@ -132,7 +132,7 @@ public: errs() << "Writing '" << Filename << "'..."; - raw_fd_ostream File(Filename.c_str(), ErrorInfo, sys::fs::F_None); + raw_fd_ostream File(Filename.c_str(), ErrorInfo, sys::fs::F_Text); std::string Title = DOTGraphTraits<GraphT>::getGraphName(Graph); if (ErrorInfo.empty()) diff --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h index 6fa4728f3d3..d975a914ff1 100644 --- a/llvm/include/llvm/Support/FileSystem.h +++ b/llvm/include/llvm/Support/FileSystem.h @@ -578,9 +578,9 @@ enum OpenFlags { /// with F_Excl. F_Append = 2, - /// F_Binary - The file should be opened in binary mode on platforms that - /// make this distinction. - F_Binary = 4, + /// The file should be opened in text mode on platforms that make this + /// distinction. + F_Text = 4, /// Open the file for read and write. F_RW = 8 |