Skip to content
  1. May 05, 2010
    • mike-m's avatar
      Test commit. · 6fa3cd26
      mike-m authored
      llvm-svn: 103090
      6fa3cd26
    • Douglas Gregor's avatar
      For thread-safe static initialization of local statics with · 370eadf3
      Douglas Gregor authored
      destructors, place the __cxa_atexit call after the __cxa_guard_release
      call, mimicking GCC/LLVM-GCC behavior. Noticed while debugging
      something related.
      
      llvm-svn: 103088
      370eadf3
    • Alexis Hunt's avatar
      Reapplying patch to change StmtNodes.def to StmtNodes.td, this time · 656bb314
      Alexis Hunt authored
      with no whitespace. This will allow statements to be referred to in
      attribute TableGen files.
      
      llvm-svn: 103087
      656bb314
    • Alexis Hunt's avatar
      Revert r103072; I accidentally ended up deleting a bunch of trailing · a8136cc4
      Alexis Hunt authored
      whitespace which makes this patch unreadable. Will recommit without the
      whitespace.
      
      llvm-svn: 103086
      a8136cc4
    • Douglas Gregor's avatar
      Support for 'template' as a disambiguator (PR7030) · b22ee886
      Douglas Gregor authored
          ParseOptionalCXXScopeSpecifier() only annotates the subset of
          template-ids which are not subject to lexical ambiguity. Add support
          for the more general case in ParseUnqualifiedId() to handle cases
          such as A::template B().
      
          Also improve some diagnostic locations.
      
      Fixes PR7030, from Alp Toker!
      
      llvm-svn: 103081
      b22ee886
    • Chris Lattner's avatar
      add a new --print-diagnostic-categories option, which causes the driver to · 86ed5b01
      Chris Lattner authored
      print out all of the category numbers with their description.  This is useful
      for clients that want to map the numbers produced by 
      --fdiagnostics-show-category=id to their human readable string form.  The
      output is simple but utilitarian:
      
      $ clang --print-diagnostic-categories
      1,Format String
      2,Something Else
      
      This implements rdar://7928193
      
      llvm-svn: 103080
      86ed5b01
    • Douglas Gregor's avatar
      Reimplement code generation for copying fields in the · 94f9a482
      Douglas Gregor authored
      implicitly-generated copy constructor. Previously, Sema would perform
      some checking and instantiation to determine which copy constructors,
      etc., would be called, then CodeGen would attempt to figure out which
      copy constructor to call... but would get it wrong, or poke at an
      uninstantiated default argument, or fail in other ways.
      
      The new scheme is similar to what we now do for the implicit
      copy-assignment operator, where Sema performs all of the semantic
      analysis and builds specific ASTs that look similar to the ASTs we'd
      get from explicitly writing the copy constructor, so that CodeGen need
      only do a direct translation.
      
      However, it's not quite that simple because one cannot explicit write
      elementwise copy-construction of an array. So, I've extended
      CXXBaseOrMemberInitializer to contain a list of indexing variables
      used to copy-construct the elements. For example, if we have:
      
        struct A { A(const A&); };
        
        struct B {
          A array[2][3];
        };
      
      then we generate an implicit copy assignment operator for B that looks
      something like this:
      
        B::B(const B &other) : array[i0][i1](other.array[i0][i1]) { }
      
      CodeGen will loop over the invented variables i0 and i1 to visit all
      elements in the array, so that each element in the destination array
      will be copy-constructed from the corresponding element in the source
      array. Of course, if we're dealing with arrays of scalars or class
      types with trivial copy-assignment operators, we just generate a
      memcpy rather than a loop.
      
      Fixes PR6928, PR5989, and PR6887. Boost.Regex now compiles and passes
      all of its regression tests.
      
      Conspicuously missing from this patch is handling for the exceptional
      case, where we need to destruct those objects that we have
      constructed. I'll address that case separately.
      
      llvm-svn: 103079
      94f9a482
    • Anders Carlsson's avatar
      Use a more appropriate LLVM type for the vtable pointer. · 58fe1756
      Anders Carlsson authored
      llvm-svn: 103078
      58fe1756
    • Douglas Gregor's avatar
      Unbreak CMake build. · ecc60b99
      Douglas Gregor authored
      llvm-svn: 103077
      ecc60b99
    • Chris Lattner's avatar
      fit in 80 cols · 5561bf3d
      Chris Lattner authored
      llvm-svn: 103075
      5561bf3d
    • Alexis Hunt's avatar
      b9f408a8
  2. May 04, 2010
  3. May 03, 2010
Loading