Skip to content
  1. Aug 03, 2013
  2. Aug 02, 2013
  3. Aug 01, 2013
    • Sean Silva's avatar
      Update incorrect file headers. · d544a9dc
      Sean Silva authored
      One of these was spotted in review by Rafael.
      
      llvm-svn: 187598
      d544a9dc
    • Hans Wennborg's avatar
      Option parsing: remove non-SUPPORT_ALIASARGS fall-back · 8669b974
      Hans Wennborg authored
      The clients of this code have been updated to all support AliasArgs.
      
      This depends on Clang r187538 and lld r187541.
      
      llvm-svn: 187546
      8669b974
    • Hans Wennborg's avatar
      Option parsing: add support for alias arguments. · 5fdcf868
      Hans Wennborg authored
      This makes option aliases more powerful by enabling them to
      pass along arguments to the option they're aliasing.
      
      For example, if we have a joined option "-foo=", we can now
      specify a flag option "-bar" to be an alias of that, with the
      argument "baz".
      
      This is especially useful for the cl.exe compatible clang driver,
      where many options are aliases. For example, this patch enables
      us to alias "/Ox" to "-O3" (-O is a joined option), and "/WX" to
      "-Werror" (again, -W is a joined option).
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1245
      
      llvm-svn: 187537
      5fdcf868
  4. Jul 31, 2013
  5. Jul 30, 2013
  6. Jul 29, 2013
  7. Jul 27, 2013
  8. Jul 26, 2013
    • Bill Schmidt's avatar
      [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. · 419f7c23
      Bill Schmidt authored
      Both GCC and LLVM will implicitly define __ppc__ and __powerpc__ for
      all PowerPC targets, whether 32- or 64-bit.  They will both implicitly
      define __ppc64__ and __powerpc64__ for 64-bit PowerPC targets, and not
      for 32-bit targets.  We cannot be sure that all other possible
      compilers used to compile Clang/LLVM define both __ppc__ and
      __powerpc__, for example, so it is best to check for both when relying
      on either inside the Clang/LLVM code base.
      
      This patch makes sure we always check for both variants.  In addition,
      it fixes one unnecessary check in lib/Target/PowerPC/PPCJITInfo.cpp.
      (At least one of __ppc__ and __powerpc__ should always be defined when
      compiling for a PowerPC target, no matter which compiler is used, so
      testing for them is unnecessary.)
      
      There are some places in the compiler that check for other variants,
      like __POWERPC__ and _POWER, and I have left those in place.  There is
      no need to add them elsewhere.  This seems to be in Apple-specific
      code, and I won't take a chance on breaking it.
      
      There is no intended change in behavior; thus, no test cases are
      added.
      
      llvm-svn: 187248
      419f7c23
  9. Jul 25, 2013
  10. Jul 24, 2013
    • Akira Hatanaka's avatar
      [mips] Use pristine object file while processing relocations. · 2e236246
      Akira Hatanaka authored
          Similar to ARM change r182800, dynamic linker will read bits/addends from
          the original object rather than from the object that might have been patched
          previously. For the purpose of relocations for MCJIT stubs on MIPS, we
          internally use otherwise unused MIPS relocations.
          
          The change also enables MCJIT unit tests for MIPS (EL/BE), and the following
          two tests now pass:
          
          - MCJITTest.return_global and
          - MCJITTest.multiple_functions.
          
          These issues have been tracked as Bug 16250.
      
          Patch by Petar Jovanovic.
      
      llvm-svn: 187019
      2e236246
  11. 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
  12. Jul 22, 2013
    • Hans Wennborg's avatar
      Option parsing: allow aliases in groups · 31d6fd84
      Hans Wennborg authored
      Option aliases in option groups were previously disallowed by an assert.
      As far as I can tell, there was no technical reason for this, and I would
      like to be able to put cl.exe compatible options in their own group for Clang,
      so let's change the assert.
      
      llvm-svn: 186838
      31d6fd84
  13. Jul 20, 2013
  14. Jul 19, 2013
  15. 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
    • Eli Friedman's avatar
      Handle '.' correctly in hex float literal parsing. · d2eb07ac
      Eli Friedman authored
      There were a couple of different loops that were not handling
      '.' correctly in APFloat::convertFromHexadecimalString; these mistakes
      could lead to assertion failures and incorrect rounding for overlong
      hex float literals.
      
      Fixes PR16643.
      
      llvm-svn: 186539
      d2eb07ac
  16. Jul 16, 2013
  17. Jul 14, 2013
  18. Jul 13, 2013
    • Rafael Espindola's avatar
      Attempt at fixing a mingw bot. · 1a08ba0e
      Rafael Espindola authored
      It is failing with
      
      YAMLTest.cpp:38:   instantiated from here
      YAMLTraits.h:226: error: 'llvm::yaml::MappingTraits<<unnamed>::BinaryHolder>::mapping' is not a valid template argument for type 'void (*)(llvm::yaml::IO&, <unnamed>::BinaryHolder&)' because function 'static void llvm::yaml::MappingTraits<<unnamed>::BinaryHolder>::mapping(llvm::yaml::IO&, <unnamed>::BinaryHolder&)' has not external linkage
      
      llvm-svn: 186245
      1a08ba0e
  19. Jul 11, 2013
Loading