mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[SystemZ][z/OS] Set more text files as text
This patch corrects more instances of text files being opened as text. Reviewed By: Jonathan.Crowther Differential Revision: https://reviews.llvm.org/D100654
This commit is contained in:
parent
e06e38183f
commit
3bd0a41980
@ -331,7 +331,8 @@ std::string WriteGraph(const GraphType &G, const Twine &Name,
|
||||
if (Filename.empty()) {
|
||||
Filename = createGraphFilename(Name.str(), FD);
|
||||
} else {
|
||||
std::error_code EC = sys::fs::openFileForWrite(Filename, FD);
|
||||
std::error_code EC = sys::fs::openFileForWrite(
|
||||
Filename, FD, sys::fs::CD_CreateAlways, sys::fs::OF_Text);
|
||||
|
||||
// Writing over an existing file is not considered an error.
|
||||
if (EC == std::errc::file_exists) {
|
||||
|
Loading…
Reference in New Issue
Block a user