mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-13 06:29:59 +00:00
Read profile files as binary as proposed in
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-August/025020.html. llvm-svn: 79983
This commit is contained in:
parent
6a5eaa3c89
commit
61a98072a0
@ -76,7 +76,7 @@ ProfileInfoLoader::ProfileInfoLoader(const char *ToolName,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user