Skip to content
  1. Jul 02, 2008
  2. Jul 01, 2008
  3. Jun 30, 2008
    • Chris Lattner's avatar
      Make a few related changes: · 9a8d1d9e
      Chris Lattner authored
      1) add a new ASTContext::getFloatTypeSemantics method.
      2) Use it from SemaExpr.cpp, CodeGenTypes.cpp and other places.
      3) Change the TargetInfo.h get*Format methods to return their 
         fltSemantics byref instead of by pointer.
      4) Change CodeGenFunction::EmitBuiltinExpr to allow builtins which
         sometimes expand specially and othertimes fall back to libm.
      5) Add support for __builtin_nan("") to codegen, cases that don't pass
         in an empty string are currently lowered to libm calls.
      6) Fix codegen of __builtin_infl.
      
      llvm-svn: 52914
      9a8d1d9e
  4. Jun 29, 2008
  5. Jun 28, 2008
  6. Jun 26, 2008
  7. Jun 25, 2008
  8. Jun 24, 2008
    • Ted Kremenek's avatar
      ObjCMessageExpr objects that represent messages to class methods now can... · a3a37ae8
      Ted Kremenek authored
      ObjCMessageExpr objects that represent messages to class methods now can contain the ObjCInterfaceDecl* of the target class if it was available when the ObjCMessageExpr object was constructed.  The original interfaces of the class has been preserved (requiring no functionality changes from clients), but now a "getClasSInfo" method returns both the ObjCInterfaceDecl* and IdentifierInfo* of the target class.
      
      llvm-svn: 52676
      a3a37ae8
  9. Jun 22, 2008
  10. Jun 21, 2008
  11. Jun 17, 2008
  12. Jun 16, 2008
  13. Jun 11, 2008
    • Eli Friedman's avatar
      Don't crash if we can't find FileEntry info for a typedef, since one · 61b529f4
      Eli Friedman authored
      isn't guaranteed to exist. This fixes a crash with conflicting typedefs
      coming from stdin.
      
      This also fixes the crash in PR2406, but doesn't completely fix the 
      issue; it appears there's something strange about the physical location 
      for the definition of int64_t in stdlib.h.
      
      llvm-svn: 52209
      61b529f4
  14. Jun 10, 2008
    • Argyrios Kyrtzidis's avatar
      -Add DeclChain member to DeclContext. · 406fb231
      Argyrios Kyrtzidis authored
      -ScopedDecls get chained to their DeclContext.
      -DeclContext's DeclChain replaces FunctionDecl's DeclChain and EnumDecl's ElementList.
      
      llvm-svn: 52164
      406fb231
    • Argyrios Kyrtzidis's avatar
      -Changes to TagDecl: · 554a07ba
      Argyrios Kyrtzidis authored
        Added TagKind enum.
        Added getTagKind() method.
        Added convenience methods: isEnum(), isStruct(), isUnion(), isClass().
      -RecordDecl/CXXRecordDecl::Create() accept a TagKind enum instead of a DeclKind one.
      
      llvm-svn: 52160
      554a07ba
  15. Jun 09, 2008
    • Eli Friedman's avatar
      Add code to make test/CodeGen/struct-init.c work correctly without the · e6e0f23a
      Eli Friedman authored
      pointer cast hack currently in isIntegerConstantExpr 
      (in lib/AST/Expr.cpp).  Also removes an odd test that even gcc doesn't accept.
      
      The reason the pointer cast hack is relevant here is that it makes Sema 
      end up misinterpreting the relevant expression as a null pointer constant.
      
      The reason for this patch is that I plan to remove the pointer cast hack 
      sometime soon because it causes strange issues, especially in its 
      current form; see my recent email to cfe-dev
      "[PATCH] add constant expression evaluation to the AST and fix PR2413".
      
      llvm-svn: 52120
      e6e0f23a
    • Eli Friedman's avatar
      For struct initialization, check compatibility with the unqualified · 75675739
      Eli Friedman authored
      type; this isn't explicitly stated in the standard, but it doesn't 
      really make sense for them to have an effect here.  Fixes the included 
      testcase, sent to me by Steve Naroff.
      
      llvm-svn: 52113
      75675739
Loading