diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-12 06:56:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-12 06:56:32 +0000 |
commit | e8b724d481c9547de2ee6f442be594b38ada452d (patch) | |
tree | 6320ed7ad5c25665580f5bdafd7dec77b653c919 /Parse/ParseDecl.cpp | |
parent | fbb9898a5ed15ee1580ba50239f2d55b3583ee5f (diff) |
move function to a more logical location, add its grammar productions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/ParseDecl.cpp')
-rw-r--r-- | Parse/ParseDecl.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/Parse/ParseDecl.cpp b/Parse/ParseDecl.cpp index 5d7c94cab0..d9ec4ddcf6 100644 --- a/Parse/ParseDecl.cpp +++ b/Parse/ParseDecl.cpp @@ -552,40 +552,6 @@ void Parser::ParseDeclarationSpecifiers(DeclSpec &DS) { } } -/// ParseObjcTypeQualifierList - This routine parses the objective-c's type -/// qualifier list and builds their bitmask representation in the input -/// argument. -void Parser::ParseObjcTypeQualifierList(ObjcDeclSpec &DS) { - while (1) { - if (!Tok.is(tok::identifier)) - return; - - const IdentifierInfo *II = Tok.getIdentifierInfo(); - for (unsigned i = 0; i != objc_NumQuals; ++i) { - if (II != ObjcTypeQuals[i]) - continue; - - ObjcDeclSpec::ObjcDeclQualifier Qual; - switch (i) { - default: assert(0 && "Unknown decl qualifier"); - case objc_in: Qual = ObjcDeclSpec::DQ_In; break; - case objc_out: Qual = ObjcDeclSpec::DQ_Out; break; - case objc_inout: Qual = ObjcDeclSpec::DQ_Inout; break; - case objc_oneway: Qual = ObjcDeclSpec::DQ_Oneway; break; - case objc_bycopy: Qual = ObjcDeclSpec::DQ_Bycopy; break; - case objc_byref: Qual = ObjcDeclSpec::DQ_Byref; break; - } - DS.setObjcDeclQualifier(Qual); - ConsumeToken(); - II = 0; - break; - } - - // If this wasn't a recognized qualifier, bail out. - if (II) return; - } -} - /// ParseTag - Parse "struct-or-union-or-class-or-enum identifier[opt]", where /// the first token has already been read and has been turned into an instance /// of DeclSpec::TST (TagType). This returns true if there is an error parsing, |