1. Feb 05, 2012
  2. Feb 04, 2012
    • Benjamin Kramer's avatar
      Some compilers do require Diagnostic.h to be present here. · 6bc0952b
      Benjamin Kramer authored
      llvm-svn: 149785
      6bc0952b
    • Benjamin Kramer's avatar
      Don't include Diagnostics.h twice when it's required zero times. · 1edced68
      Benjamin Kramer authored
      llvm-svn: 149784
      1edced68
    • Benjamin Kramer's avatar
      Move a method from IdentifierTable.h out of line and remove the SmallString include. · 4903802f
      Benjamin Kramer authored
      Fix all the transitive include users.
      
      llvm-svn: 149783
      4903802f
    • Benjamin Kramer's avatar
      Remove Diagnostic.h include from Preprocessor.h. · 02c746de
      Benjamin Kramer authored
      - Move the offending methods out of line and fix transitive includers.
      - This required changing an enum in the PPCallback API into an unsigned.
      
      llvm-svn: 149782
      02c746de
    • Benjamin Kramer's avatar
      Move various diagnostic operator<< overloads out of line and remove includes of Diagnostic.h. · 3307c508
      Benjamin Kramer authored
      Fix all the files that depended on transitive includes of Diagnostic.h.
      With this patch in place changing a diagnostic no longer requires a full rebuild of the StaticAnalyzer.
      
      llvm-svn: 149781
      3307c508
    • Benjamin Kramer's avatar
      Move Storage and StorageAllocator out of the PartialDiagnostic class so we can... · 728ed3f3
      Benjamin Kramer authored
      Move Storage and StorageAllocator out of the PartialDiagnostic class so we can forward declare them.
      
      Let ASTContext allocate the storage in its BumpPtrAllocator.
      This will help us remove ASTContext's depedency on PartialDiagnostic.h soon.
      
      llvm-svn: 149780
      728ed3f3
    • Benjamin Kramer's avatar
      StaticAnalyzer: Remove FixIts from PathDiagnosticPieces. · 3f85fb22
      Benjamin Kramer authored
      They were unused and pulled in Diagnostic.h for no reason.
      
      llvm-svn: 149779
      3f85fb22
    • Richard Smith's avatar
      In C++11 mode, when an integral constant expression is desired and we have a · f4c51d9d
      Richard Smith authored
      value of class type, look for a unique conversion operator converting to
      integral or unscoped enumeration type and use that. Implements [expr.const]p5.
      
      Sema::VerifyIntegerConstantExpression now performs the conversion and returns
      the converted result. Some important callers of Expr::isIntegralConstantExpr
      have been switched over to using it (including all of those required for C++11
      conformance); this switch brings a side-benefit of improved diagnostics and, in
      several cases, simpler code. However, some language extensions and attributes
      have not been moved across and will not perform implicit conversions on
      constant expressions of literal class type where an ICE is required.
      
      In passing, fix static_assert to perform a contextual conversion to bool on its
      argument.
      
      llvm-svn: 149776
      f4c51d9d
    • Sean Callanan's avatar
      I have brought LLDB up-to-date with top of tree · 5b26f27f
      Sean Callanan authored
      LLVM/Clang.  This brings in several fixes, including:
      
      - Improvements in the Just-In-Time compiler's
        allocation of memory: the JIT now allocates
        memory in chunks of sections, improving its
        ability to generate relocations.  I have
        revamped the RecordingMemoryManager to reflect
        these changes, as well as to get the memory
        allocation and data copying out fo the
        ClangExpressionParser code.  Jim Grosbach wrote
        the updates to the JIT on the LLVM side.
      
      - A new ExternalASTSource interface to allow LLDB to
        report accurate structure layout information to
        Clang.  Previously we could only report the sizes
        of fields, not their offsets.  This meant that if
        data structures included field alignment
        directives, we could not communicate the necessary
        alignment to Clang and accesses to the data would
        fail.  Now we can (and I have update the relevant
        test case).  Thanks to Doug Gregor for implementing
        the Clang side of this fix.
      
      - The way Objective-C interfaces are completed by
        Clang has been made consistent with RecordDecls;
        with help from Doug Gregor and Greg Clayton I have
        ensured that this still works.
      
      - I have eliminated all local LLVM and Clang patches,
        committing the ones that are still relevant to LLVM
        and Clang as needed.
      
      I have tested the changes extensively locally, but
      please let me know if they cause any trouble for you.
      
      llvm-svn: 149775
      5b26f27f
    • Sean Callanan's avatar
      Modified the Enhanced Disassembler to create and · bdce3885
      Sean Callanan authored
      cache disassemblers according to the string value
      of the target triple, not according to the enum
      of the triple CPU.  The reason for this is that
      certain attributes of the instruction set are not
      reflected in the enum, but only in the string.
      
      llvm-svn: 149773
      bdce3885
    • Richard Smith's avatar
      Don't allow a value of a scoped enumeration to be used as the first bound for an · 8dd34250
      Richard Smith authored
      array new expression. This lays some groundwork for the implicit conversion to
      integral or unscoped enumeration which C++11 ICEs undergo.
      
      llvm-svn: 149772
      8dd34250