|  | Commit message (Collapse) | Author | Age | Files | Lines | 
|---|
| | 
| 
| 
| 
| 
| 
| 
| | start of a filename, not a filename+length.  All clients can produce a
null terminated name, and the system api's require null terminated 
strings anyway.
llvm-svn: 49041 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| | 1) stop using MappedFile.
2) if profitable use the sys::path::MapInFilePages api to
   read the file.
3) otherwise fallback to read.
When sys::path::MapInFilePages is implemented, this provides
several benefits:
#1: this avoids fragmenting memory for small files.
#2: this avoids extraneous stat calls when the file size is known.
#3: this only keeps the file descriptor open while reading the 
    file, not for the duration of the lifetime of the memory 
    buffer.  This fixes a serious clang FD 'leak' problem.
I believe that this will work on a win32 machine, but I don't have
one to test on.  I'd appreciate it if someone could check.
llvm-svn: 49031 | 
| | 
| 
| 
| 
| 
| | make getBase() return a const-correct pointer.
llvm-svn: 49025 | 
| | 
| 
| 
| 
| 
| 
| | and shared.  This complicates the design, is not used, and probably
doesn't even work.
llvm-svn: 49022 | 
| | 
| 
| 
| | llvm-svn: 45418 | 
| | 
| 
| 
| 
| 
| 
| 
| | return
a valid but empty buffer if stdin is empty.
llvm-svn: 44219 | 
| | 
| 
| 
| | llvm-svn: 42815 | 
| | 
| 
| 
| 
| 
| | documentation implies and as its uses depend.
llvm-svn: 40939 | 
| | 
| 
| 
| | llvm-svn: 37829 | 
| | 
| 
| 
| | llvm-svn: 36981 | 
| | 
| 
| 
| | llvm-svn: 36901 | 
| | 
| 
| 
| | llvm-svn: 36899 | 
| | 
| 
| 
| 
| 
| | file instead of aborting.
llvm-svn: 36858 | 
| | 
| 
| 
| | llvm-svn: 36561 | 
| | 
| 
| 
| | llvm-svn: 36559 | 
|  | llvm-svn: 36553 |