[cfe-commits] r39434 - /cfe/cfe/trunk/Basic/SourceManager.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:44:21 PDT 2007
Author: clattner
Date: Wed Jul 11 11:44:21 2007
New Revision: 39434
URL: http://llvm.org/viewvc/llvm-project?rev=39434&view=rev
Log:
Adjust to change in MemoryBuffer interface
Modified:
cfe/cfe/trunk/Basic/SourceManager.cpp
Modified: cfe/cfe/trunk/Basic/SourceManager.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Basic/SourceManager.cpp?rev=39434&r1=39433&r2=39434&view=diff
==============================================================================
--- cfe/cfe/trunk/Basic/SourceManager.cpp (original)
+++ cfe/cfe/trunk/Basic/SourceManager.cpp Wed Jul 11 11:44:21 2007
@@ -54,7 +54,7 @@
// If the file is larger than some threshold, use 'read', otherwise use mmap.
if (FileEnt->getSize() >= 4096*4)
return MemoryBuffer::getFile(FileEnt->getName(), strlen(FileEnt->getName()),
- FileEnt->getSize());
+ 0, FileEnt->getSize());
MemoryBuffer *SB = MemoryBuffer::getNewUninitMemBuffer(FileEnt->getSize(),
FileEnt->getName());
More information about the cfe-commits
mailing list