Skip to content
  1. Jul 23, 2013
    • 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
  2. Jul 19, 2013
  3. Jul 18, 2013
    • Reid Kleckner's avatar
      [Support] Beef up and expose the response file parsing in llvm::cl · a73c7781
      Reid Kleckner authored
      The plan is to use it for clang and lld.
      
      Major behavior changes:
      - We can now parse UTF-16 files that have a byte order mark.
      - PR16209: Don't drop backslashes on the floor if they don't escape
        anything.
      
      The actual parsing loop was based on code from Clang's driver.cpp,
      although it's been rewritten to track its state with control flow rather
      than state variables.
      
      Reviewers: hans
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1170
      
      llvm-svn: 186587
      a73c7781
    • Rafael Espindola's avatar
      Remove dead code. · 213c4cb1
      Rafael Espindola authored
      llvm-svn: 186561
      213c4cb1
    • Rafael Espindola's avatar
      Fix a regression I introduced back in r178147. · 9ed1761a
      Rafael Espindola authored
      We don't want cast and dyn_cast to work on temporaries. They don't extend
      lifetime like a direct bind to a reference would, so they can introduce
      hard to find bugs.
      
      I added tests to make sure we don't regress this. Thanks to Eli Friedman for
      noticing this and for his suggestions on how to test it.
      
      llvm-svn: 186559
      9ed1761a
  4. Jul 16, 2013
  5. Jul 08, 2013
  6. Jul 06, 2013
  7. Jul 05, 2013
  8. Jun 28, 2013
  9. Jun 27, 2013
    • Rafael Espindola's avatar
      Add a convenience createUniqueDirectory function. · 7ffacc49
      Rafael Espindola authored
      There are a few valid situation where we care about the structure inside a
      directory, but not about the directory itself. A simple example is for unit
      testing directory traversal.
      
      PathV1 had a function like this, add one to V2 and port existing users of the
      created temp file and delete it hack to using it.
      
      llvm-svn: 185059
      7ffacc49
  10. Jun 26, 2013
  11. Jun 21, 2013
  12. Jun 20, 2013
  13. Jun 19, 2013
  14. Jun 13, 2013
  15. Jun 12, 2013
    • Rafael Espindola's avatar
      Remove the program class. · cb2eca0f
      Rafael Espindola authored
      It was only used to implement ExecuteAndWait and ExecuteNoWait. Expose just
      those two functions and make Execute and Wait implementations details.
      
      llvm-svn: 183864
      cb2eca0f
    • Rafael Espindola's avatar
      Move PathV2.h to Path.h · 3bc8e719
      Rafael Espindola authored
      Most clients have already been moved from Path V1 to V2. The ones using V1
      now include PathV1.h explicitly.
      
      llvm-svn: 183801
      3bc8e719
  16. Jun 08, 2013
  17. Jun 01, 2013
  18. May 30, 2013
  19. May 25, 2013
  20. May 24, 2013
  21. May 14, 2013
  22. May 06, 2013
  23. Apr 30, 2013
  24. Apr 24, 2013
    • Reid Kleckner's avatar
      Don't forward declare environ on Windows · 206ddd07
      Reid Kleckner authored
      That seems to interact poorly with the environ and _environ macros
      defined in MSVC's <stdlib.h>.
      
      Also remove the incorrect comment about _NSGetEnviron().
      
      llvm-svn: 180200
      206ddd07
  25. Apr 23, 2013
Loading