llvm-6502/tools
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
..
bugpoint Add a wrapper for open. 2013-07-16 19:44:17 +00:00
bugpoint-passes
gold Split getOpenFile into getOpenFile and getOpenFileSlice. 2013-07-23 20:25:01 +00:00
llc Recommit r186217 with testcase fix: 2013-07-22 20:15:21 +00:00
lli
llvm-ar Split getOpenFile into getOpenFile and getOpenFileSlice. 2013-07-23 20:25:01 +00:00
llvm-as Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-bcanalyzer
llvm-config
llvm-cov
llvm-diff
llvm-dis Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-dwarfdump
llvm-extract Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-jitlistener
llvm-link Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-mc Improve llvm-mc disassembler mode and refactor ARM tests to use it 2013-07-19 10:05:04 +00:00
llvm-mcmarkup
llvm-nm Don't crash in 'llvm -s' when an archive has no symtab. 2013-07-10 20:14:22 +00:00
llvm-objdump
llvm-prof
llvm-readobj Retry submitting r186623: COFFDumper: Dump data directory entries. 2013-07-19 23:23:29 +00:00
llvm-rtdyld
llvm-shlib
llvm-size
llvm-stress Add a wrapper for open. 2013-07-16 19:44:17 +00:00
llvm-symbolizer LLVMSymbolize.cpp: Fix build. Triple::ArchType is not a namespace. 2013-07-17 06:53:51 +00:00
lto Split getOpenFile into getOpenFile and getOpenFileSlice. 2013-07-23 20:25:01 +00:00
macho-dump
obj2yaml
opt Recommit r186217 with testcase fix: 2013-07-22 20:15:21 +00:00
yaml2obj
CMakeLists.txt
LLVMBuild.txt
Makefile