mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 22:06:06 +00:00

Reading text files on z/OS relies on auto conversion to handle ASCII/EBCDIC correctly. For this to work files need to be opened in text mode is that is the type of the file. This PR fixes `llvm-ctxprof` utility in this regards which in turn fixes the following LIT failure on z/OS: `FAIL: LLVM :: Analysis/CtxProfAnalysis/flatten-zero-path.ll`