Skip to content
  1. Dec 11, 2008
    • Douglas Gregor's avatar
      Actually distinguish between RecordDecl::field_iterator and... · e0295613
      Douglas Gregor authored
      Actually distinguish between RecordDecl::field_iterator and RecordDecl::field_const_iterator, propagating the constness down to the FieldDecls.
      
      llvm-svn: 60883
      e0295613
    • Douglas Gregor's avatar
      Unifies the name-lookup mechanisms used in various parts of the AST · 91f84216
      Douglas Gregor authored
      and separates lexical name lookup from qualified name lookup. In
      particular:
        * Make DeclContext the central data structure for storing and
          looking up declarations within existing declarations, e.g., members
          of structs/unions/classes, enumerators in C++0x enums, members of
          C++ namespaces, and (later) members of Objective-C
          interfaces/implementations. DeclContext uses a lazily-constructed
          data structure optimized for fast lookup (array for small contexts,
          hash table for larger contexts). 
      
        * Implement C++ qualified name lookup in terms of lookup into
          DeclContext.
      
        * Implement C++ unqualified name lookup in terms of
          qualified+unqualified name lookup (since unqualified lookup is not
          purely lexical in C++!)
      
        * Limit the use of the chains of declarations stored in
          IdentifierInfo to those names declared lexically.
      
        * Eliminate CXXFieldDecl, collapsing its behavior into
          FieldDecl. (FieldDecl is now a ScopedDecl).
      
        * Make RecordDecl into a DeclContext and eliminates its
          Members/NumMembers fields (since one can just iterate through the
          DeclContext to get the fields).
      
      llvm-svn: 60878
      91f84216
  2. Nov 26, 2008
  3. Nov 24, 2008
    • Chris Lattner's avatar
      Rename NamedDecl::getName() to getNameAsString(). Replace a bunch of · f3d3faec
      Chris Lattner authored
      uses of getName() with uses of getDeclName().  This upgrades a bunch of
      diags to take DeclNames instead of std::strings.
      
      This also tweaks a couple of diagnostics to be cleaner and changes
      CheckInitializerTypes/PerformInitializationByConstructor to pass
      around DeclarationNames instead of std::strings.
      
      llvm-svn: 59947
      f3d3faec
    • Chris Lattner's avatar
      Rename NamedDecl::getIdentifierName() to ::getNameAsCString() and make it · 86d7d913
      Chris Lattner authored
      assert if the name is not an identifier.  Update callers to do the right
      thing and avoid this method in unsafe cases.  This also fixes an objc
      warning that was missing a space, and migrates a couple more to taking
      IdentifierInfo and QualTypes instead of std::strings.
      
      llvm-svn: 59936
      86d7d913
  4. Nov 17, 2008
  5. Nov 11, 2008
  6. Nov 10, 2008
  7. Nov 08, 2008
  8. Nov 01, 2008
  9. Oct 31, 2008
  10. Oct 24, 2008
  11. Oct 18, 2008
  12. Oct 17, 2008
  13. Aug 11, 2008
    • Daniel Dunbar's avatar
      More #include cleaning · 221fa94e
      Daniel Dunbar authored
       - Drop Expr.h,RecordLayout.h from ASTContext.h (for DeclBase.h and
         SourceLocation.h)
       - Move ASTContext constructor into implementation
      
      llvm-svn: 54627
      221fa94e
  14. Aug 08, 2008
  15. Aug 04, 2008
    • Chris Lattner's avatar
      · 7adf0760
      Chris Lattner authored
      Finally fix PR2189.  This makes a fairly invasive but important change to
      move getAsArrayType into ASTContext instead of being a method on type.
      This is required because getAsArrayType(const AT), where AT is a typedef
      for "int[10]" needs to return ArrayType(const int, 10).
      
      Fixing this greatly simplifies getArrayDecayedType, which is a good sign.
      
      llvm-svn: 54317
      7adf0760
  16. Jul 04, 2008
  17. Jun 27, 2008
  18. Jun 19, 2008
  19. Jun 09, 2008
  20. Jun 08, 2008
  21. Jun 07, 2008
  22. Jun 05, 2008
  23. May 30, 2008
  24. May 29, 2008
  25. May 25, 2008
  26. May 22, 2008
    • Eli Friedman's avatar
      Make debugging information usable. This is barebones, but it makes -g · 1763075b
      Eli Friedman authored
      actually work (instead of crashing llc), and there's enough info emitted 
      to get line number information in gdb. This should hopefully be helpful 
      for debugging non-working programs.
      
      I got rid of the begin/endregion calls because the implementation wasn't 
      working; someone who knows the debugging info a bit better might try to 
      add it. I really have no clue how a compiler is supposed to emit them.
      
      This commit shouldn't have any effect without -g.
      
      llvm-svn: 51404
      1763075b
  27. May 13, 2008
  28. May 08, 2008
    • Sanjiv Gupta's avatar
      Added -g command line options to clang for generating source level debug... · 15cb6690
      Sanjiv Gupta authored
      Added -g command line options to clang for generating source level debug information. This patch currently enables generation of line number debug information (stoppoints) and region begin/end debug information. The new files CGDebugInfo.h and CGDebugInfo.cpp implements the debug info manager class CGDebugInfo.
      
      llvm-svn: 50848
      15cb6690
Loading