Skip to content
  1. Mar 07, 2014
  2. Mar 06, 2014
    • Saleem Abdulrasool's avatar
      Support: split object format out of environment · 35476334
      Saleem Abdulrasool authored
      This is a preliminary setup change to support a renaming of Windows target
      triples.  Split the object file format information out of the environment into a
      separate entity.  Unfortunately, file format was previously treated as an
      environment with an unknown OS.  This is most obvious in the ARM subtarget where
      the handling for macho on an arbitrary platform switches to AAPCS rather than
      APCS (as per Apple's needs).
      
      llvm-svn: 203160
      35476334
  3. Mar 05, 2014
  4. Mar 04, 2014
  5. Mar 02, 2014
  6. Mar 01, 2014
  7. Feb 26, 2014
  8. Feb 13, 2014
    • Reid Kleckner's avatar
      Tweak an _MSC_VER ifdef to use typename with clang in a unittest · 0f679177
      Reid Kleckner authored
      In theory, Clang should figure out how to parse this correctly without
      typename, but since this is the last TU that Clang falls back on in the
      self-host, I'm going to compromise and check for __clang__.
      
      And now Clang can self-host on -win32 without fallback!  The 'check' and
      'check-clang' targets both pass.
      
      llvm-svn: 201358
      0f679177
  9. Feb 05, 2014
  10. Jan 31, 2014
  11. Jan 27, 2014
    • Alp Toker's avatar
      Roll back the ConstStringRef change for now · 17d4e98e
      Alp Toker authored
      There are a couple of interesting things here that we want to check over
      (particularly the expecting asserts in StringRef) and get right for general use
      in ADT so hold back on this one. For clang we have a workable templated
      solution to use in the meanwhile.
      
      This reverts commit r200187.
      
      llvm-svn: 200194
      17d4e98e
    • Alp Toker's avatar
      StringRef: Extend constexpr capabilities and introduce ConstStringRef · 042f41b0
      Alp Toker authored
      (1) Add llvm_expect(), an asserting macro that can be evaluated as a constexpr
          expression as well as a runtime assert or compiler hint in release builds. This
          technique can be used to construct functions that are both unevaluated and
          compiled depending on usage.
      
      (2) Update StringRef using llvm_expect() to preserve runtime assertions while
          extending the same checks to static asserts in C++11 builds that support the
          feature.
      
      (3) Introduce ConstStringRef, a strong subclass of StringRef that references
          compile-time constant strings. It's convertible to, but not from, ordinary
          StringRef and thus can be used to add compile-time safety to various interfaces
          in LLVM and clang that only accept fixed inputs such as diagnostic format
          strings that tend to get misused.
      
      llvm-svn: 200187
      042f41b0
  12. Jan 19, 2014
  13. Jan 07, 2014
  14. Jan 03, 2014
  15. Dec 19, 2013
  16. Dec 13, 2013
  17. Dec 10, 2013
  18. Nov 20, 2013
    • Chandler Carruth's avatar
      Make the moved-from SmallPtrSet be a valid, empty, small-state object. · c74010df
      Chandler Carruth authored
      Enhance the tests to actually require moves in C++11 mode, in addition
      to testing the moved-from state. Further enhance the tests to cover
      copy-assignment into a moved-from object and moving a large-state
      object. (Note that we can't really test small-state vs. large-state as
      that isn't an observable property of the API really.) This should finish
      addressing review on r195239.
      
      llvm-svn: 195261
      c74010df
    • Chandler Carruth's avatar
      Add a test for assignment operator behavior which was changed in · 6d888bc0
      Chandler Carruth authored
      r195239, as well as a comment about the fact that assigning over
      a moved-from object was in fact tested. Addresses some of the review
      feedback on r195239.
      
      llvm-svn: 195260
      6d888bc0
    • Chandler Carruth's avatar
      Give SmallPtrSet move semantics when we have R-value references. · 55758e96
      Chandler Carruth authored
      Somehow, this ADT got missed which is moderately terrifying considering
      the efficiency of move for it.
      
      The code to implement move semantics for it is pretty horrible
      currently but was written to reasonably closely match the rest of the
      code. Unittests that cover both copying and moving (at a basic level)
      added.
      
      llvm-svn: 195239
      55758e96
  19. Nov 19, 2013
  20. Nov 18, 2013
    • Alexey Samsonov's avatar
      Revert r194865 and r194874. · 49109a27
      Alexey Samsonov authored
      This change is incorrect. If you delete virtual destructor of both a base class
      and a subclass, then the following code:
        Base *foo = new Child();
        delete foo;
      will not cause the destructor for members of Child class. As a result, I observe
      plently of memory leaks. Notable examples I investigated are:
      ObjectBuffer and ObjectBufferStream, AttributeImpl and StringSAttributeImpl.
      
      llvm-svn: 194997
      49109a27
  21. Nov 15, 2013
  22. Nov 13, 2013
  23. Nov 09, 2013
Loading