Skip to content
  1. Nov 12, 2007
    • Steve Naroff's avatar
      · 040f696b
      Steve Naroff authored
      Fix regression to Sema::ObjcActOnStartOfMethodDef()...need to initialize InvalidType field to false.
      
      llvm-svn: 44023
      040f696b
    • Steve Naroff's avatar
      · cd002f5a
      Steve Naroff authored
      Add an error diagnostic to Parse::ParseObjCMessageExpression().
      
      This now exposes the following bug...
      
      ******************** TEST 'Sema/message.m' FAILED! ********************
      Command: 
       clang -fsyntax-only -verify Sema/message.m
      Output:
      Errors seen but not expected:
        Line 9: invalid receiver to message expression
      ******************** TEST 'Sema/message.m' FAILED! ********************
      
      As far as I can tell, all messages to method agruments fail.
      
      The method arguments are built by Sema::ObjcActOnStartOfMethodDef().
      
      llvm-svn: 44022
      cd002f5a
    • Ted Kremenek's avatar
      Added versions of ReadPtr that takes an explicit SerializedPtrID. This allows · e33ba163
      Ted Kremenek authored
      clients of the Deserializer to read the pointer ID before they are ready
      to deserialize the object (which can mean registering a pointer reference
      with the backpatcher).
      
      Changed some methods that took an argument "SerializedPtrID" to "const SerializedPtrID&" (pass-by-reference).  This is to accommodate a future
      revision of SerializedPtrID where it may be much fatter than an unsigned
      integer.
      
      llvm-svn: 44021
      e33ba163
    • Ted Kremenek's avatar
      In Stmt serialization, renamed directEmit to EmitImpl and · 0035bf33
      Ted Kremenek authored
      directMaterialize to CreateImpl.
      
      llvm-svn: 44020
      0035bf33
    • Owen Anderson's avatar
      Break critical edges coming into blocks with PHI nodes. · c520c4b3
      Owen Anderson authored
      llvm-svn: 44019
      c520c4b3
    • Steve Naroff's avatar
      · b342361c
      Steve Naroff authored
      Now that we can refer to instance variables, make sure they are considered lvalues.
      
      llvm-svn: 44017
      b342361c
    • Steve Naroff's avatar
      · e46504b2
      Steve Naroff authored
      Implement instance variable references.
      
      llvm-svn: 44016
      e46504b2
    • Steve Naroff's avatar
      · e3d1ab29
      Steve Naroff authored
      - Minor cleanup to yesterday's changes to Sema::ObjcActOnStartOfMethodDef();
      - Add Sema::CurMethodDecl, in preparation for adding ObjcIvarRefExpr.
      - Add ObjcInterfaceDecl::lookupInstanceVariable(), in prep for adding ivars.
      - A couple renames in ObjcInterfaceDecl, while I was in the vicinity:-)
      
      llvm-svn: 44015
      e3d1ab29
    • Gordon Henriksen's avatar
      Typo fix in the tutorial. · 1ced282c
      Gordon Henriksen authored
      llvm-svn: 44014
      1ced282c
    • Duncan Sands's avatar
      Compile fix. · 5dc0c928
      Duncan Sands authored
      llvm-svn: 44013
      5dc0c928
    • Owen Anderson's avatar
      Add a flag for indirect branch instructions. · 933b5b7e
      Owen Anderson authored
      Target maintainers: please check that the instructions for your target are correctly marked.
      
      llvm-svn: 44012
      933b5b7e
    • Evan Cheng's avatar
      Refactor some code. · be51f28e
      Evan Cheng authored
      llvm-svn: 44010
      be51f28e
    • Steve Naroff's avatar
      · 8e5c112a
      Steve Naroff authored
      Forgot this file from my last commit...
      
      llvm-svn: 44009
      8e5c112a
    • Steve Naroff's avatar
      · ff4dbff4
      Steve Naroff authored
      Remove Action::ObjcActOnMethodDefinition(). Rationale:
      
      - It is not an "action" - it is never called by the parser.
      - It was only used by one method, Sema::ObjcActOnStartOfMethodDef().
      
      As a result, the logic it embodied is now directly implemented in Sema::ObjcActOnStartOfMethodDef().
      
      llvm-svn: 44008
      ff4dbff4
    • Steve Naroff's avatar
      · 3434bebe
      Steve Naroff authored
      Make sure @property is allowed within a category.
      
      Bug submitted by Keith Bauer.
      
      CookieJar:Desktop keith$ cat test.m
      #import <WebKit/WebKit.h>
      
      llvm-svn: 44007
      3434bebe
    • Steve Naroff's avatar
      · d0bf516e
      Steve Naroff authored
      Remove Sema::ObjcBuildMethodParameter().
      Modify Sema::ParseParamDeclarator() to work for both ActOnStartOfFunctionDef() and ObjcActOnStartOfMethodDef().
      
      llvm-svn: 44006
      d0bf516e
    • Owen Anderson's avatar
      Fix rewriting of PHI nodes. · 556fb346
      Owen Anderson authored
      Could someone more familiar with machine-level stuff review this for me?
      
      llvm-svn: 44005
      556fb346
    • Hartmut Kaiser's avatar
      Updated VC++ build system · 28af9f7d
      Hartmut Kaiser authored
      llvm-svn: 44004
      28af9f7d
    • Owen Anderson's avatar
      Remove unnecessary #include's. · f66f0d61
      Owen Anderson authored
      llvm-svn: 44003
      f66f0d61
    • Owen Anderson's avatar
      As Chris and Evan pointed out, BreakCriticalMachineEdges doesn't really need · a1cd4521
      Owen Anderson authored
      to be a pass of its own.  Instead, move it out into a helper method.
      
      llvm-svn: 44002
      a1cd4521
    • Owen Anderson's avatar
      Fix on 64-bit machines. · 55f4e5d2
      Owen Anderson authored
      llvm-svn: 44001
      55f4e5d2
    • Steve Naroff's avatar
      · b313fc32
      Steve Naroff authored
      Replace 2 method definition actions (ActOnFunctionDefBody, ActOnMethodDefBody) with 1 method definition action (ActOnFinishFunctionBody). I can't think of any reason that we would need two action hooks.
      
      llvm-svn: 44000
      b313fc32
  2. Nov 11, 2007
    • Steve Naroff's avatar
      · bb87572d
      Steve Naroff authored
      Replace 3 method definition functions (ObjcParseMethodDefinition, ParseObjCInstanceMethodDefinition, ParseObjCClassMethodDefinition) with 1 method definition function (ParseObjCMethodDefinition).
      
      Less code/confusion.
      
      llvm-svn: 43999
      bb87572d
    • Anton Korobeynikov's avatar
      Clarify the meaning of '-2' register number · 0644bb86
      Anton Korobeynikov authored
      llvm-svn: 43998
      0644bb86
    • Anton Korobeynikov's avatar
      Use TableGen to emit information for dwarf register numbers. · 4edfea43
      Anton Korobeynikov authored
      This makes DwarfRegNum to accept list of numbers instead.
      Added three different "flavours", but only slightly tested on x86-32/linux.
      Please check another subtargets if possible,
      
      llvm-svn: 43997
      4edfea43
    • Steve Naroff's avatar
      · 49effdef
      Steve Naroff authored
      Tweak Sema::ActOnInstanceMessage() to treat the built-in "Class" type the same as "id".
      
      llvm-svn: 43996
      49effdef
    • Steve Naroff's avatar
      · cac26f4f
      Steve Naroff authored
      This is the last 5% of the solution to teaching Sema::ActOnInstanceMessage() about private methods (r43989).
      
      While the diff is large, the idea is very simple. When we parse method definitions (in an @implementation), we need to add them incrementally (rather than wait until the @end).
      
      Other details...
      
      - Renamed Sema::ActOnAddMethodsToObjcDecl() to Sema::ActOnAtEnd(). The methods are now optional arguments.
      - Removed Parser::AllImplMethods (a nice cleanup).
      - Added location info to ObjcImplementationDecl (since we will need it very soon:-)
      - Modified message.m test to no longer allow the bogus diagnostic.
      
      llvm-svn: 43995
      cac26f4f
    • Steve Naroff's avatar
      · 5f9ae64f
      Steve Naroff authored
      Make sure Sema::CheckIncrementDecrementOperand() removes typedefs when doing it's analysis.
      
      Thanks to Seo Sanghyeon for his excellent (first) bug fix!
      
      llvm-svn: 43994
      5f9ae64f
    • Anton Korobeynikov's avatar
      Add convenient helper to obtain list of ints · a468a11d
      Anton Korobeynikov authored
      llvm-svn: 43993
      a468a11d
    • Steve Naroff's avatar
      · 22e078e0
      Steve Naroff authored
      Teach Sema::ActOnInstanceMessage() about private methods. That is, methods declared in an implementation (but not listed in the interface).
      
      This commit is only 95% of the bug fix. The last piece to this puzzle is to add the method decls to the implementation incrementally (as we encounter them). At the moment, the methods aren't added until we see an @end (which is too late).
      
      I will complete this later...
      
      llvm-svn: 43989
      22e078e0
  3. Nov 10, 2007
Loading