Skip to content
  1. Dec 19, 2007
  2. Dec 18, 2007
    • Fariborz Jahanian's avatar
      9f0e3108
    • Chris Lattner's avatar
      Fix const propagation bug. · 78e34a00
      Chris Lattner authored
      llvm-svn: 45152
      78e34a00
    • Steve Naroff's avatar
      · b723564c
      Steve Naroff authored
      Add DefaultFunctionArrayConversion() to the indirection operator in Sema::ActOnUnaryOp().
      
      This fixes a bug Chris forwarded from Oliver Hunt...
      
      typedef struct { char name[100]; } entry;
      char f1(entry *e) { return *e->name; }
      
      llvm-svn: 45148
      b723564c
    • Steve Naroff's avatar
      · b74406ba
      Steve Naroff authored
      Fixe bogus error for variable argument methods. Sema::ObjcGetTypeForMethodDefinition() wasn't preserving the isVariadic boolean. Another fix is to avoid synthsizing the function decl entirely, however this is a separate issue that I don't want to deal with now. Also added a FIXME to Sema::CheckFunctionCall(), which is currently emitting a bogus warning.
      
      llvm-svn: 45146
      b74406ba
    • Steve Naroff's avatar
      · 1d2538cb
      Steve Naroff authored
      Improve how we find private method decls. This involved:
      
      - Changed Sema::ObjcActOnStartOfMethodDef() to register the methods with the global pools.
      - Changed Sema::ActOnInstanceMessage() to look in global pools (should be much less error prone).
      - Added a test case to message.m (for lookup that was broken).
      
      Misc changes while I was investigating this...
      
      - Changed Sema::ActOnAtEnd() to call AddFactoryMethodToGlobalPool (this looked like a cut/paste error).
      - Added a comment and tweaked another where I was using the first person.
      
      llvm-svn: 45142
      1d2538cb
  3. Dec 17, 2007
  4. Dec 16, 2007
    • Steve Naroff's avatar
      · eaaae467
      Steve Naroff authored
      Sema::ActOnMemberReferenceExpr() needs to perform the default conversions.
      
      Bug and test case provided by Carl Lewis.
      
      llvm-svn: 45078
      eaaae467
  5. Dec 15, 2007
    • Steve Naroff's avatar
      · 3ce37a6b
      Steve Naroff authored
      - Remove getInstanceMethods/getClassMethods API on ObjcInterfaceDecl, ObjcProtocolDecl, and ObjcCategoryDecl. These methods are replaced by the respective iterators on each class.
      - Add getInstanceMethodForSelector to ObjcInterfaceDecl, ObjcProtocolDecl, and ObjcCatgoryDecl. This hook will do a "shallow" lookup. This is a convenience method that reducing some of the iterator usage.
      - Various changes to convert all clients to the above API's...
       
      
      llvm-svn: 45046
      3ce37a6b
  6. Dec 13, 2007
  7. Dec 12, 2007
  8. Dec 11, 2007
    • Ted Kremenek's avatar
      Mega-patch: ripped SourceManager out of Diagnostic/DiagnosticClient. Now · d4e5fbac
      Ted Kremenek authored
      SourceManager is passed by reference, allowing the SourceManager to be
      associated with a specific translation unit, and not the entire execution
      of the driver.
      
      Modified all users of Diagnostics to comply with this new interface.
      
      Integrated SourceManager as a member variable of TargetInfo. TargetInfo will
      eventually be associated with a single translation unit (just like
      SourceManager).
      
      Made the SourceManager reference in ASTContext private. Provided accessor
      getSourceManager() for clients to use instead. Modified clients to comply with
      new interface.
      
      llvm-svn: 44878
      d4e5fbac
    • Fariborz Jahanian's avatar
      For @optional unimplemented methods do not issue the warning. · 3b5dca25
      Fariborz Jahanian authored
      llvm-svn: 44872
      3b5dca25
    • Steve Naroff's avatar
      · 5cace62e
      Steve Naroff authored
      Avoid the first person in a recently added comment. 
      
      llvm-svn: 44843
      5cace62e
    • Steve Naroff's avatar
      · c30dcf12
      Steve Naroff authored
      Change err_undef_protocolref to warn_undef_protocolref (this is consistent with GCC).
      
      llvm-svn: 44840
      c30dcf12
    • Steve Naroff's avatar
      · f727faf2
      Steve Naroff authored
      Explicitly set the string literal type from "char *" to "constant array of char".
      
      At this point, I am fairly certain the front-end is correct. Unfortunately, the back-end is still unhappy.
      
      That said, I've commented out the two lines in globalinit.c that are causing problems.
      
      Chris, please have a look...thanks!
      
      llvm-svn: 44823
      f727faf2
  9. Dec 10, 2007
    • Steve Naroff's avatar
      · 91f78080
      Steve Naroff authored
      Add support for initializing char arrays from string literals.
      
      Adapted from a patch by Anders Carlsson.
      
      llvm-svn: 44816
      91f78080
  10. Dec 09, 2007
Loading