Rafael Espindola f3a9f67eee 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.

llvm-svn: 186984
2013-07-23 20:25:01 +00:00
..
2013-07-16 19:44:17 +00:00
2013-07-22 20:15:21 +00:00
2013-07-16 19:44:17 +00:00
2013-06-26 13:54:34 +00:00
2013-07-16 19:44:17 +00:00
2013-07-16 19:44:17 +00:00
2013-07-16 19:44:17 +00:00
2013-07-16 19:44:17 +00:00
2013-07-22 20:15:21 +00:00