Skip to content
  1. Jul 31, 2009
  2. Jul 30, 2009
  3. Jul 29, 2009
    • Ted Kremenek's avatar
      Change uses of: · c23c7e6a
      Ted Kremenek authored
        Type::getAsReferenceType() -> Type::getAs<ReferenceType>()
        Type::getAsRecordType() -> Type::getAs<RecordType>()
        Type::getAsPointerType() -> Type::getAs<PointerType>()
        Type::getAsBlockPointerType() -> Type::getAs<BlockPointerType>()
        Type::getAsLValueReferenceType() -> Type::getAs<LValueReferenceType>()
        Type::getAsRValueReferenceType() -> Type::getAs<RValueReferenceType>()
        Type::getAsMemberPointerType() -> Type::getAs<MemberPointerType>()
        Type::getAsReferenceType() -> Type::getAs<ReferenceType>()
        Type::getAsTagType() -> Type::getAs<TagType>()
        
      And remove Type::getAsReferenceType(), etc.
      
      This change is similar to one I made a couple weeks ago, but that was partly
      reverted pending some additional design discussion. With Doug's pending smart
      pointer changes for Types, it seemed natural to take this approach.
      
      llvm-svn: 77510
      c23c7e6a
  4. Jul 25, 2009
  5. Jul 23, 2009
  6. Jul 21, 2009
  7. Jul 20, 2009
  8. Jul 19, 2009
  9. Jul 17, 2009
  10. Jul 16, 2009
    • Ted Kremenek's avatar
      Add member template 'Type::getAs<T>', which converts a Type* to a respective T*. · e3fb4b65
      Ted Kremenek authored
      This method is intended to eventually replace the individual
      Type::getAsXXXType<> methods.
      
      The motivation behind this change is twofold:
      
      1) Reduce redundant implementations of Type::getAsXXXType() methods. Most of
      them are basically copy-and-paste.
      
      2) By centralizing the implementation of the getAs<Type> logic we can more
      smoothly move over to Doug Gregor's proposed canonical type smart pointer
      scheme.
      
      Along with this patch:
      
      a) Removed 'Type::getAsPointerType()'; now clients use getAs<PointerType>.
      b) Removed 'Type::getAsBlockPointerTypE()'; now clients use getAs<BlockPointerType>.
      
      llvm-svn: 76098
      e3fb4b65
  11. Jul 15, 2009
  12. Jul 13, 2009
  13. Jul 08, 2009
  14. Jun 30, 2009
  15. Jun 18, 2009
  16. May 31, 2009
  17. May 29, 2009
  18. May 16, 2009
  19. Apr 26, 2009
  20. Apr 23, 2009
    • Chris Lattner's avatar
      the logic for computing __func__ and friends is really broken: · 28ec0cf8
      Chris Lattner authored
      the type assigned by sema (and is visible with sizeof(__func__) for
      example) has nothing to do with what codegen ends up producing.
      We should eventually add a method on PredefinedExpr to handle this.
      In the meantime, just set up some framework and add some fixme's.
      
      llvm-svn: 69872
      28ec0cf8
  21. Apr 21, 2009
  22. Apr 18, 2009
  23. Apr 15, 2009
  24. Apr 13, 2009
  25. Apr 10, 2009
  26. Apr 04, 2009
  27. Apr 01, 2009
  28. Mar 28, 2009
  29. Mar 22, 2009
  30. Mar 17, 2009
  31. Mar 07, 2009
  32. Mar 06, 2009
Loading