Skip to content
  1. Dec 04, 2008
  2. 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
    • Chris Lattner's avatar
      Rename Selector::getName() to Selector::getAsString(), and add · e4b95698
      Chris Lattner authored
      a new NamedDecl::getAsString() method.
      
      Change uses of Selector::getName() to just pass in a Selector 
      where possible (e.g. to diagnostics) instead of going through
      an std::string.
      
      This also adds new formatters for objcinstance and objcclass
      as described in the dox.
      
      llvm-svn: 59933
      e4b95698
  3. Nov 21, 2008
  4. Nov 20, 2008
  5. Nov 19, 2008
  6. Nov 18, 2008
  7. Nov 17, 2008
  8. Nov 15, 2008
  9. Nov 01, 2008
  10. Oct 17, 2008
  11. Sep 24, 2008
  12. Sep 10, 2008
    • Daniel Dunbar's avatar
      Move FunctionType conversion into CGCall.cpp: · 7a95ca31
      Daniel Dunbar authored
       - Added CodeGenTypes::GetFunctionType, taking a CGFunctionInfo.
       - Updated Obj-C runtimes to use this instead of rolling the
         llvm::FunctionType by hand.
       - Killed CodeGenTypes::{ConvertReturnType, DecodeArgumentTypes}.
      
      Add ABIArgInfo class to encapsulate ABI decision of how to lower types
      to LLVM.
       - Will move to target sometime soon.
      
      llvm-svn: 56047
      7a95ca31
  13. Sep 09, 2008
  14. Aug 31, 2008
  15. Aug 30, 2008
    • Daniel Dunbar's avatar
      Add Objective-C property setter support. · 4b8c6db9
      Daniel Dunbar authored
       - Change Obj-C runtime message API, drop the ObjCMessageExpr arg in
         favor of just result type and selector. Necessary so it can be
         reused in situations where we don't want to cons up an
         ObjCMessageExpr.
       - Update aggregate binary assignment to know about special property
         ref lvalues.
       - Add CodeGenFunction::EmitCallArg overload which takes an already
         emitted rvalue.
      
      Add CodeGenFunction::StoreComplexIntoAddr.
      
      Disabled logic in Sema for parsing Objective-C dot-syntax that
      accesses methods. This code does not search in the correct order and
      the AST node has no way of properly representing its results.
      
      Updated StmtDumper to print a bit more information about
      ObjCPropertyRefExprs.
      
      llvm-svn: 55561
      4b8c6db9
    • Daniel Dunbar's avatar
      Refactor handling of calls: · c722b856
      Daniel Dunbar authored
       - Added CodeGenFunction::EmitCall which just takes the callee, return
         type, and a list of (Value*,QualType) pairs.
       - Added CodeGenFunction::EmitCallArg which handles emitting code for
         a call argument and turning it into an appropriate
         (Value*,QualType) pair.
       - Changed Objective-C runtime interface so that the actual emission
         of arguments for message sends is (once again) done in the code to
         emit a message send.
      
      No intended functionality change, this is prep work for better ABI
      support and for Objective-C property setter support.
      
      llvm-svn: 55560
      c722b856
  16. Aug 25, 2008
  17. Aug 23, 2008
    • Daniel Dunbar's avatar
      Trim CGObjCRuntime::GenerateMessageSend[Super] · 97db84ce
      Daniel Dunbar authored
       - Returns an RValue.
       - Reduced to only taking the CodeGenFunction, Expr, and Receiver.
       - Becomes responsible for emitting the arguments.
      
      Add CodeGenFunction::EmitCallExprExt
       - Takes optional extra arguments to insert at the head of the call.
       - This allows the Obj-C runtimes to call into this and isolates the
         argument and call instruction generation code to one place. Upshot
         is that we now pass structures (more) correctly.
      
      Also, fix one aspect of generating methods which take structure
      arguments (for NeXT). This probably needs to be merged with the
      SetFunctionAttributes code in CodeGenModule.cpp
      
      llvm-svn: 55223
      97db84ce
  18. Aug 16, 2008
    • Daniel Dunbar's avatar
      Add NeXT runtime support for generating methods. · a94ecd2a
      Daniel Dunbar authored
      Change CodeGenFunction::EmitParmDecl to take either a ParmVarDecl or an
        ImplicitParamDecl.
      
      Drop hasAggregateLLVMType from CodeGenModule.cpp (use version in
        CodeGenFunction).
      
      Change the Objective-C method generation to use EmitParmDecl for
        implicit parameters.
      
      llvm-svn: 54838
      a94ecd2a
    • Daniel Dunbar's avatar
      Change ObjCRuntime::LookupClass -> GetClass, and now takes the · 7c6d3a7c
      Daniel Dunbar authored
        ObjCInterfaceDecl.
      
      Change ObjCRuntime::GenerateMessageSendSuper to take the
        ObjCInterfaceDecl for the super class, instead of just its name.
      
      Change EmitObjCMessageExpr to make the right runtime calls for super
        sends in class methods (i.e. a super send with the class object as
        the receiver).
      
      llvm-svn: 54833
      7c6d3a7c
    • Daniel Dunbar's avatar
      Change CGObjCRuntime methods to take appropriate clang Decls. · 92992509
      Daniel Dunbar authored
       - This is in prep for implementation class support for the NeXT
         runtime, for which the existing methods don't provide enough
         information (and additionally make too many assumptions about how
         things should be emitted).
      
      llvm-svn: 54824
      92992509
  19. Aug 14, 2008
    • Daniel Dunbar's avatar
      Add GetAddrOfConstantCString method · c4baa06d
      Daniel Dunbar authored
       - Returns addr of constant for argument + '\0'.
       - I couldn't think of a better name.
       - Move appropriate users of GetAddrOfConstantString to this.
      
      Rename getStringForStringLiteral to GetStringForStringLiteral.
      
      Add GetAddrOfConstantStringFromLiteral
       - This combines GetAddrOfConstantString and
         GetStringForStringLiteral. This method can be, but is not yet, more
         efficient.
      
      Change GetAddrOfConstantString to not add terminating '\0'
       - <rdar://problem/6140956>
      
      llvm-svn: 54768
      c4baa06d
  20. Aug 13, 2008
  21. Aug 12, 2008
    • Daniel Dunbar's avatar
      Drop Sender from GenerateMessageSend* · 5d71559c
      Daniel Dunbar authored
       - Was unused and generated a unnecessary load of self
      
      Update NeXT runtime to get proper object & selector types from
             ASTContext.
      
      llvm-svn: 54667
      5d71559c
    • Daniel Dunbar's avatar
      Add ObjC constant string support for NeXT. · 8b8683f9
      Daniel Dunbar authored
      Changed CGObjCRuntime::GenerateConstantString interface to take
             std::string instead of char* and size.
      
      Change ObjC functions which call on GenerateConstantString to bitcast
             result to appropriate type.
      
      llvm-svn: 54659
      8b8683f9
  22. Aug 11, 2008
  23. Aug 08, 2008
  24. Jul 21, 2008
  25. Jun 26, 2008
Loading