commit | 5fed82025e79b109bc1a1813a2ce13b11ed7f045 | [log] [tgz] |
---|---|---|
author | Andreas Neustifter <astifter-llvm@gmx.at> | Tue Aug 25 12:53:27 2009 +0000 |
committer | Andreas Neustifter <astifter-llvm@gmx.at> | Tue Aug 25 12:53:27 2009 +0000 |
tree | 6a15c68bafe67840fb18c739427b991d8cab288f | |
parent | e921f6f927a615460a62addc5626222c44c6ed1c [diff] [blame] |
Read profile files as binary as proposed in http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-August/025020.html. llvm-svn: 79983
diff --git a/llvm/lib/Analysis/ProfileInfoLoader.cpp b/llvm/lib/Analysis/ProfileInfoLoader.cpp index eddbef3..f0641cf 100644 --- a/llvm/lib/Analysis/ProfileInfoLoader.cpp +++ b/llvm/lib/Analysis/ProfileInfoLoader.cpp
@@ -76,7 +76,7 @@ Module &TheModule) : Filename(Filename), M(TheModule), Warned(false) { - FILE *F = fopen(Filename.c_str(), "r"); + FILE *F = fopen(Filename.c_str(), "rb"); if (F == 0) { errs() << ToolName << ": Error opening '" << Filename << "': "; perror(0);