aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorAbhina Sree <69635948+abhina-sree@users.noreply.github.com>2024-06-12 09:22:21 -0400
committerGitHub <noreply@github.com>2024-06-12 09:22:21 -0400
commitd3342e5b922209e471b610ca1e254d9481b65319 (patch)
tree82666294b5e0212d64782abfaa6333aa0af4b982 /llvm/lib/LTO/LTOBackend.cpp
parentea2ee5dc2f14a17ff4486b41c9475c0b261412a4 (diff)
downloadllvm-d3342e5b922209e471b610ca1e254d9481b65319.zip
llvm-d3342e5b922209e471b610ca1e254d9481b65319.tar.gz
llvm-d3342e5b922209e471b610ca1e254d9481b65319.tar.bz2
[SystemZ][z/OS] Continue marking text files with OF_Text (#95111)
Text files should be opened with OF_Text to have the correct encoding.
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 21aed79..3fc6751 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -143,7 +143,7 @@ Error Config::addSaveTemps(std::string OutputFileName, bool UseInputModulePath,
writeIndexToFile(Index, OS);
Path = OutputFileName + "index.dot";
- raw_fd_ostream OSDot(Path, EC, sys::fs::OpenFlags::OF_None);
+ raw_fd_ostream OSDot(Path, EC, sys::fs::OpenFlags::OF_Text);
if (EC)
reportOpenError(Path, EC.message());
Index.exportToDot(OSDot, GUIDPreservedSymbols);