71280b55a3406c7dd4215449bf4a3ab216e78ffd |
|
16-Sep-2011 |
Ivan Krasin <krasin@chromium.org> |
use 64-bit types instead of off_t/size_t to avoid the issue when gold plugin is built with Large File Support (sizeof(off_t) == 64 on i686) and the rest of LLVM is built w/o Large File Support (sizeof(off_t) == 32 on i686) which corrupts the stack. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139873 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
9bb4a2ae8a0ce6404b9752f93ceebb2d00401997 |
|
22-May-2011 |
Chris Lattner <sabre@nondot.org> |
random comment cleanups. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
5d86759e0ff44e07ead4982673fe10abec50f765 |
|
28-Apr-2011 |
Ted Kremenek <kremenek@apple.com> |
Add MemoryBuffer::getBufferKind() to report whether a memory buffer uses malloc'ed or mmap'ed memory. This is for performance analysis. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130432 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
11d1803770f54dad441007a6ebafc70cb9395695 |
|
22-Mar-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
We don't need a null terminator for the output file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128098 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
9916d2ac3941513e301e39dee76a981c7caab694 |
|
17-Mar-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Use RequiresNullTerminator to create buffers without a null terminator instead of copying. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127835 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
f7fdad15d910fc27bc9334faab5b71c101455e1a |
|
10-Mar-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add r127409 back now that the windows file was updated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127417 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
4b0e1f127841590d61783cda21babbdd79e49fae |
|
10-Mar-2011 |
Jakob Stoklund Olesen <stoklund@2pi.dk> |
Revert r127409 which broke all the Windows bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127413 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
7deb187736b09aa0805b7d9902f499e41feefccc |
|
10-Mar-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Add support for MemoryBuffers that are not null terminated and add support for creating buffers that cover only a part of a file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127409 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
b4cc031a3e1306fea74c9211d50c5cde6d9a8cd5 |
|
08-Feb-2011 |
Rafael Espindola <rafael.espindola@gmail.com> |
Don't open the file again in the gold plugin. To be able to do this, update MemoryBuffer::getOpenFile to not close the file descriptor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125128 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
3ff9563c3e391954b2e224afcf8b2b0fcc3888aa |
|
16-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
333ad3f2bf2941618f8e1563da022da011e615c0 |
|
09-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Fix whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121382 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
333fb04506233255f10d8095c9e2de5e5f0fdc6f |
|
09-Dec-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
1f6efa3996dd1929fbc129203ce5009b620e6969 |
|
29-Nov-2010 |
Michael J. Spencer <bigcheesegs@gmail.com> |
Merge System into Support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
7cf705461cfdca5dd5b48a5065f8e24a1ce8c8c4 |
|
23-Nov-2010 |
Chris Lattner <sabre@nondot.org> |
add a MemoryBuffer::getOpenFile method, which turns an open file descriptor into a MemoryBuffer (and closes the FD). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
9f9bd8e4af8c5e7ae02eb5de418a49a6fdafb3f1 |
|
23-Nov-2010 |
Chris Lattner <sabre@nondot.org> |
Revert functionality doug added in r98575 that was never documented and only used by some clang stuff I just removed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120002 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
867fe8570f299a058f155f98646d85cabc27155b |
|
10-Nov-2010 |
Duncan Sands <baldrick@free.fr> |
There is no EndPtr anymore - reinterpret the original comment in terms of InputData. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118677 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
d4d1f85aa751cadf69768746afd2c6c43c116ac2 |
|
25-Jun-2010 |
Benjamin Kramer <benny.kra@googlemail.com> |
Tweak MemoryBuffer to allocate the class itself, the name and possibly the buffer in the same chunk of memory. 2 less mallocs for every uninitialized MemoryBuffer and 1 less malloc for every MemoryBuffer pointing to a memory range translate into 20% less mallocs on clang -cc1 -Eonly Cocoa_h.m. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106839 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
60e6f3d4123a01babeb2c1a0e00d0a2b109008e5 |
|
24-Jun-2010 |
Dan Gohman <gohman@apple.com> |
Add overloads for getFile and getFileOrSTDIN which take a const char * instead of a StringRef, avoiding the need to copy the string in the common case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106754 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
30f30e43861512d78023c84952e5e524c0003ae9 |
|
22-Jun-2010 |
Dan Gohman <gohman@apple.com> |
Add a comment explaining a non-obvious API. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106539 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
30377e780918aacda1befa47054c61b0155c194c |
|
27-May-2010 |
Dan Gohman <gohman@apple.com> |
Add basic error checking to MemoryBuffer::getSTDIN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104855 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
4c842dda3939c6b9f83ba7e8e19e43445cd9a832 |
|
06-Apr-2010 |
Chris Lattner <sabre@nondot.org> |
stringref-ize the MemoryBuffer::get apis. This requires a co-committed clang patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100485 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
1bb30b6f750e2364a68af3b04c76ed26b4f508e8 |
|
15-Mar-2010 |
Douglas Gregor <dgregor@apple.com> |
Extend MemoryBuffer::getFile() to take an optional "stat" structure pointer. If given, the structure will be set with the stat information from the file actually read. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98575 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
f605773869d1489dcfb10c47f99ada9fe4908b45 |
|
18-Nov-2009 |
Jeffrey Yasskin <jyasskin@google.com> |
Remove spurious @verbatim. Patch by Timo Juhani Lindfors! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89252 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
d65267ee625bb9cf8dc655a0c0409760e2b76c71 |
|
10-Nov-2009 |
Daniel Dunbar <daniel@zuster.org> |
Fix MemoryBuffer::getSTDIN to *not* return null if stdin is empty, this is a lame API. Also, Stringrefify some more MemoryBuffer functions, and add two performance FIXMEs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86630 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
8b67f774e9c38b7718b2b300b628388f966df4e0 |
|
26-Oct-2009 |
Chandler Carruth <chandlerc@gmail.com> |
Move DataTypes.h to include/llvm/System, update all users. This breaks the last direct inclusion edge from System to Support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85086 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
1464869cb325e30673005a16accaf47da8b6ba1b |
|
24-Aug-2009 |
Daniel Dunbar <daniel@zuster.org> |
Add MemoryBuffer::getBuffer() -> StringRef. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79903 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
fe2cce63aa26d0916fa7be32c6bf7fa8fb059ee7 |
|
20-Feb-2009 |
Misha Brukman <brukman+llvm@gmail.com> |
Removed trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65196 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
34cd4a484e532cc463fd5a4bf59b88d13c5467c1 |
|
05-May-2008 |
Evan Cheng <evan.cheng@apple.com> |
Fix more -Wshorten-64-to-32 warnings. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50659 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
038112a4e0a9afd656f415ab397a230ae5921627 |
|
01-Apr-2008 |
Chris Lattner <sabre@nondot.org> |
Change the MemoryBuffer::getFile* methods to take just a pointer to the 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49041 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
7ed47a13356daed2a34cd2209a31f92552e3bdd8 |
|
29-Dec-2007 |
Chris Lattner <sabre@nondot.org> |
Don't attribute in file headers anymore. See llvmdev for the discussion of this change. Boy are my fingers tired. ;-) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
2b1f1066aca0f6a3687377636a86086fa2cd222d |
|
18-Nov-2007 |
Chris Lattner <sabre@nondot.org> |
Fix the Linker testcase regressions, by making MemoryBuffer::getFileOrSTDIN return a valid but empty buffer if stdin is empty. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44219 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
3daae2701b76293c31c1cbdafc9782352321e1f0 |
|
09-Oct-2007 |
Chris Lattner <sabre@nondot.org> |
Add new MemoryBuffer::getMemBufferCopy method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42815 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
eb9422b19d427edb8fec666823a4a0f7078c9c1b |
|
08-Aug-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Make it clear that getSTDIN returns null when stdin is empty. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40940 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
181b6c9cb5def44658d15848e34c5c45d973f065 |
|
05-Aug-2007 |
Reid Spencer <rspencer@reidspencer.com> |
Fix minor doxygen nits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40854 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
5499da88331a31a9dcc24dc160f58b411fb0d34a |
|
07-May-2007 |
Chris Lattner <sabre@nondot.org> |
Enhance MemoryBuffer to return error messages in strings if they occur. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36899 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
e96eec0c6966473ed8f71ecf4d2dd37daec29d36 |
|
06-May-2007 |
Chris Lattner <sabre@nondot.org> |
Add a helper that either opens a file or stdin. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36835 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|
333ffd4abfcc3be32a945dc73c81adeafde1ba6b |
|
29-Apr-2007 |
Chris Lattner <sabre@nondot.org> |
Add a new memorybuffer class, to unify all the file reading code in the system git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36553 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/MemoryBuffer.h
|