Skip to content
  1. Aug 22, 2013
  2. Jul 23, 2013
    • Eli Bendersky's avatar
      Refactor the unit test for MemoryBuffer::getOpenFileSlice · bb506fce
      Eli Bendersky authored
      Run in two different modes: with and without reopening the temporary file
      between creating it and mapping it with MemoryBuffer.
      
      llvm-svn: 186986
      bb506fce
    • Rafael Espindola's avatar
      Split getOpenFile into getOpenFile and getOpenFileSlice. · 3d2ac2e4
      Rafael Espindola authored
      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
      3d2ac2e4
    • Eli Bendersky's avatar
      Add a simple unit test for MemoryBuffer::getOpenFile · f288626c
      Eli Bendersky authored
      llvm-svn: 186887
      f288626c
  3. Dec 04, 2012
  4. Oct 04, 2012
Loading