diff options
author | Zachary Turner <zturner@google.com> | 2015-01-15 22:53:44 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-01-15 22:53:44 +0000 |
commit | 8f3f7beac4d73a0c4e33f085e6885d37a61efbf7 (patch) | |
tree | f18e07f70abcbc1abfa5f38603892877cd326923 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 4013950034f359f846250308e48dce162b86b5c3 (diff) | |
download | llvm-8f3f7beac4d73a0c4e33f085e6885d37a61efbf7.zip llvm-8f3f7beac4d73a0c4e33f085e6885d37a61efbf7.tar.gz llvm-8f3f7beac4d73a0c4e33f085e6885d37a61efbf7.tar.bz2 |
During source manager test, write back the file using binary mode.
On Windows, opening with "w" opens it as text instead of binary.
This causes translation of newline characters, so that "\n" turns
into "\r\n", which in turn leads to git detecting that the file
has changed and wanting to commit it.
llvm-svn: 226220
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions