summaryrefslogtreecommitdiff
path: root/tools/llvm-profdata
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-03-22 05:38:22 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-03-22 05:38:22 +0000
commit4e669c9278951b0531edccd2c6f8d45854c2cee7 (patch)
tree1312702b461fa77a63c0a44495f072fbb7963bfa /tools/llvm-profdata
parent62f4b48fc1d33a5392dc5ed5fc29de05bd7a0e25 (diff)
llvm-profdata: Avoid F_Text in "merge" for now, since "llvm-profdata show" is confused with CRLF.
FIXME: line_iterator should be tolerant of CR. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204540 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-profdata')
-rw-r--r--tools/llvm-profdata/llvm-profdata.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-profdata/llvm-profdata.cpp b/tools/llvm-profdata/llvm-profdata.cpp
index ce9ae9ae4f6..42783d00ff0 100644
--- a/tools/llvm-profdata/llvm-profdata.cpp
+++ b/tools/llvm-profdata/llvm-profdata.cpp
@@ -47,7 +47,8 @@ int merge_main(int argc, const char *argv[]) {
OutputFilename = "-";
std::string ErrorInfo;
- raw_fd_ostream Output(OutputFilename.data(), ErrorInfo, sys::fs::F_Text);
+ // FIXME: F_Text would be available if line_iterator could accept CRLF.
+ raw_fd_ostream Output(OutputFilename.data(), ErrorInfo, sys::fs::F_None);
if (!ErrorInfo.empty())
exitWithError(ErrorInfo, OutputFilename);