llvm/unittests
Rafael Espindola 70c7e48545 Split getOpenFile into getOpenFile and getOpenFileSlice.
The main observation is that we never need both the filesize and the map size.
When mapping a slice of a file, it doesn't make sense to request a null
terminator and that would be the only case where the filesize would be used.

There are other cleanups that should be done in this area:

* A client should not have to pass the size (even an explicit -1) to say if
  it wants a null terminator or not, so we should probably swap the argument
  order.
* The default should be to not require a null terminator. Very few clients
  require this, but many end up asking for it just because it is the default.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186984 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-23 20:25:01 +00:00
..
ADT Handle '.' correctly in hex float literal parsing. 2013-07-17 22:17:29 +00:00
Analysis Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
Bitcode llvm/unittests: Use OwningPtr to fix --vg-leak. 2013-01-23 08:33:13 +00:00
DebugInfo Create a stub for DWARF parser unittests 2013-04-17 08:29:02 +00:00
ExecutionEngine Convert Windows to Unix line endings, no functionality change. 2013-07-13 22:08:55 +00:00
IR Fix copypaste error in test. 2013-06-28 23:24:10 +00:00
Object Attempt at fixing a mingw bot. 2013-07-13 12:36:30 +00:00
Option Option parsing: allow aliases in groups 2013-07-22 16:18:13 +00:00
Support Split getOpenFile into getOpenFile and getOpenFileSlice. 2013-07-23 20:25:01 +00:00
Transforms Make SpecialCaseList match full strings, as documented, using anchors. 2013-07-16 17:56:07 +00:00
CMakeLists.txt Make BinaryRef output correctly in case of empty data. 2013-07-09 00:54:46 +00:00
Makefile Add Option unit tests to the make build 2013-07-20 03:04:36 +00:00
Makefile.unittest build/unittests: Fix llvm-config names for gtest libraries, and bring Makefile 2011-12-15 23:35:08 +00:00