mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
Read profile files as binary as proposed in
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-August/025020.html. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79983 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d47db50b3
commit
cf48efcf3d
@ -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…
x
Reference in New Issue
Block a user