diff options
author | Chris Lattner <sabre@nondot.org> | 2008-10-20 07:43:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-10-20 07:43:01 +0000 |
commit | 5fd80fada1eeecd279af8333a7f58b86d8df8016 (patch) | |
tree | dbac9eff308eafb8fbc8b0ef22990b254e936a9b /lib/Parse/Parser.cpp | |
parent | e00da7c2f47d4a3d9615c1056a8a65e459113de3 (diff) |
eliminate ObjCPropertyAttrs an corresponding enums, just use
strcmp when needed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 697d0f6f53..6beaac0151 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -273,18 +273,6 @@ void Parser::Initialize() { ObjCTypeQuals[objc_bycopy] = &PP.getIdentifierTable().get("bycopy"); ObjCTypeQuals[objc_byref] = &PP.getIdentifierTable().get("byref"); } - if (getLang().ObjC2) { - ObjCPropertyAttrs[objc_readonly] = &PP.getIdentifierTable().get("readonly"); - ObjCPropertyAttrs[objc_getter] = &PP.getIdentifierTable().get("getter"); - ObjCPropertyAttrs[objc_setter] = &PP.getIdentifierTable().get("setter"); - ObjCPropertyAttrs[objc_assign] = &PP.getIdentifierTable().get("assign"); - ObjCPropertyAttrs[objc_readwrite] = - &PP.getIdentifierTable().get("readwrite"); - ObjCPropertyAttrs[objc_retain] = &PP.getIdentifierTable().get("retain"); - ObjCPropertyAttrs[objc_copy] = &PP.getIdentifierTable().get("copy"); - ObjCPropertyAttrs[objc_nonatomic] = - &PP.getIdentifierTable().get("nonatomic"); - } Ident_super = &PP.getIdentifierTable().get("super"); } |