Benjamin Kramer 6a9cd41549 Various improvements to MemoryBuffer::getFile:
- Use a RAII object to close the FD.
- Use sys::StrError instead of thread-unsafe strerror calls.
- Recover gracefully if read returns zero. This works around an issue on
  DragonFlyBSD where /dev/null has an st_size of 136 but we can't read 136 bytes
  from it.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100106 91177308-0d34-0410-b5e6-96231b3b80d8
2010-04-01 14:35:22 +00:00
..
2010-03-24 19:38:02 +00:00
2010-03-24 19:38:02 +00:00
2010-03-24 19:38:02 +00:00
2010-03-24 19:38:02 +00:00
2010-02-23 00:04:53 +00:00
2010-03-24 19:38:02 +00:00
2010-03-30 05:34:02 +00:00
2010-03-24 09:05:14 +00:00