Skip to content
  1. Feb 28, 2007
    • Steve Naroff's avatar
      · 2c055d2b
      Steve Naroff authored
      Go back to having the clang driver create ASTContext explicitly, passing
      it to Sema/ASTStreamer (separating the lifetime of ASTContext from
      the lifetime of Sema). One day it might be useful to consider creating
      a context object implicitly if one isn't provided (using default arguments in
      Sema's constructor). At this point, adding this convenience isn't necessary.
      
      llvm-svn: 39346
      2c055d2b
    • Steve Naroff's avatar
      Make Sema's use of the preprocessor explicit (rather than assume · 38d31b47
      Steve Naroff authored
      the prerocessor will be available via ASTContext).
      - Removed the public data member "PP" in ASTContext.
      - Changed ASTContext's contructor to take TargetInfo/IdentifierTable explicitly.
      - Implicitly create an ASTContext in Sema's constructor. This simplifies
      the clients job (and makes ASTContext more private).
      --As a side effect, added a "PrintStats" hook to Sema.
      
      To support this level of encapsulation, ASTContext is always dynamically
      allocated (by Sema). Previously, ASTContext was being allocated on the
      stack. I don't believe this should be a performance issue (since ASTContext
      is fairly course grain and tied to the lifetime of Sema currently).
      
      llvm-svn: 39345
      38d31b47
  2. Jan 26, 2007
    • Chris Lattner's avatar
      start gather stats on types processed. carbon.h currently yields: · 4eb445d2
      Chris Lattner authored
      *** AST Context Stats:
        30594 types total.
          19 builtin types
          3929 pointer types
          308 array types
          18883 function types with proto
          8 function types with no proto
          2988 typename (typedef) types
          4459 tagged types
            1476 struct types
            80 union types
            0 class types
            2903 enum types
        83298 slow type lookups
      
      Next up, making type canonicalization not trivially silly.
      
      llvm-svn: 39305
      4eb445d2
  3. Nov 10, 2006
  4. Nov 09, 2006
  5. Nov 04, 2006
  6. Nov 03, 2006
  7. Oct 16, 2006
  8. Oct 06, 2006
  9. Aug 23, 2006
  10. Aug 18, 2006
  11. Aug 17, 2006
Loading