Skip to content
  1. Jun 22, 2012
  2. Jun 21, 2012
  3. Jun 20, 2012
    • John McCall's avatar
      Introduce ObjCRuntime::hasWeakClassImport() and use it in the appropriate · 18ac1632
      John McCall authored
      places.  I've turned this off for the GNU runtimes --- I don't know if
      they support weak class import, but it's easy enough for them to opt in.
      
      Also tweak a comment per review by Jordan.
      
      llvm-svn: 158860
      18ac1632
    • Anna Zaks's avatar
      [analyzer] Malloc: cleanup, disallow free on relinquished memory. · 9050ffd5
      Anna Zaks authored
      This commits sets the grounds for more aggressive use after free
      checking. We will use the Relinquished sate to denote that someone
      else is now responsible for releasing the memory.
      
      llvm-svn: 158850
      9050ffd5
    • Dmitri Gribenko's avatar
      Remove unused ASTContext& arg in RawCommentList::addComment, as pointed out by... · 93b9ecba
      Dmitri Gribenko authored
      Remove unused ASTContext& arg in RawCommentList::addComment, as pointed out by Chandler in commit message for r158807.
      
      llvm-svn: 158845
      93b9ecba
    • Nico Weber's avatar
      Allow unqualified lookup of non-dependent member functions · df7dffb3
      Nico Weber authored
      in microsoft mode. Fixes PR12701.
      
      The code for this was already in 2 of the 3 branches of a
      conditional and missing in the 3rd branch, so lift it above
      the conditional.
      
      llvm-svn: 158842
      df7dffb3
    • Chad Rosier's avatar
      Whitespace. · cc6a908c
      Chad Rosier authored
      llvm-svn: 158837
      cc6a908c
    • Jordan Rose's avatar
      Remove -Winternal-linkage-in-inline in C++. · de9e9764
      Jordan Rose authored
      It's very easy for anonymous external linkage to propagate in C++ through
      return types and parameter types. Likewise, it's possible that a template
      containing an inline function is only used with parameters that have internal
      linkage. Actually diagnosing where the internal linkage comes from is fairly
      difficult (both to locate and then to print nicely). Finally, since we only
      have one translation unit available, we can't even prove that any of this
      violates the ODR.
      
      This warning needs better-defined behavior in C++ before it can really go in.
      
      Rewording of the C warning (which /is/ specified by C99) coming shortly.
      
      llvm-svn: 158836
      de9e9764
    • Chad Rosier's avatar
      [ms-style asm] Change the fatal error to an extension warning. Apparently, this · 43b7c021
      Chad Rosier authored
      error was asserting on anything that included Windows.h.  MS-style inline asm is
      still dropped, but at least now we're not completely silent about it.
      
      llvm-svn: 158833
      43b7c021
    • Benjamin Kramer's avatar
      Don't circumvent the debug info type cache when emitting info for EnumConstantDecl. · e6dcf106
      Benjamin Kramer authored
      CreateEnumType doesn't participate in caching so the descriptor for the enum
      gets recomputed for every reference of an element of an enum, only to get
      discarded when it gets turned into an MDNode.
      
      No functionality change except performance.
      
      llvm-svn: 158832
      e6dcf106
    • Chad Rosier's avatar
      Whitespace. · bebf146d
      Chad Rosier authored
      llvm-svn: 158830
      bebf146d
    • Fariborz Jahanian's avatar
      objc: improved diagnostic when property autosynthesis may cause · edc2971c
      Fariborz Jahanian authored
      change in behavior. // rdar://11671080
      
      llvm-svn: 158828
      edc2971c
    • Chandler Carruth's avatar
      Fix a big layering violation introduced by r158771. · 39a3e754
      Chandler Carruth authored
      That commit added a new library just to hold the RawCommentList. I've
      started a discussion on the commit thread about whether that is really
      meritted -- it certainly doesn't seem necessary at this stage.
      
      However, the immediate problem is that the AST library has a hard
      dependency on the Comment library, but the dependencies were set up
      completely backward. In addition to the layering violation, this had an
      unfortunate effect if scattering the Comments library dependency
      throughout the build system, but inconsistently so -- several parts of
      the CMake dependencies were missing and only showed up due to transitive
      deps or the fact that the target wasn't being built by tho bots.
      
      It turns out that the Comments library can't (currently) be a well
      formed layer *below* the AST library either, as it has an API that
      accepts an ASTContext. That parameter is currently unused, so maybe that
      was a mistake?
      
      Anyways, it really seems like this is logically part of the AST --
      that's the whole point of the ASTContext providing access to it as far
      as I can tell -- so I've merged it into the AST library to solve the
      immediate layering violation problems and remove some of the churn from
      our library dependencies.
      
      llvm-svn: 158807
      39a3e754
Loading