summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-09-17 21:26:50 +0000
committerSteve Naroff <snaroff@apple.com>2007-09-17 21:26:50 +0000
commitc4657d00bb3a80498a1485c95d6959ef794b901c (patch)
tree8d366c3ab0185d5d6bb2b1ee9af19a311eb93247
parentfb5c46c740b5f5c0da99e92ec09f747553f34228 (diff)
downloadbcm5719-llvm-c4657d00bb3a80498a1485c95d6959ef794b901c.tar.gz
bcm5719-llvm-c4657d00bb3a80498a1485c95d6959ef794b901c.zip
Add a comment and remove unused constructors.
llvm-svn: 42063
-rw-r--r--clang/include/clang/Parse/DeclSpec.h21
1 files changed, 3 insertions, 18 deletions
diff --git a/clang/include/clang/Parse/DeclSpec.h b/clang/include/clang/Parse/DeclSpec.h
index bf197186ba8..73254cd6824 100644
--- a/clang/include/clang/Parse/DeclSpec.h
+++ b/clang/include/clang/Parse/DeclSpec.h
@@ -562,15 +562,13 @@ public:
bool getInvalidType() { return InvalidType; }
};
+/// ObjCKeyword* - The following 3 small value structures capture keyword
+/// information passed from the parser to the actions. Like Declarator above,
+/// instances of these structures are transient objects that live on the stack.
struct ObjcKeywordInfo {
IdentifierInfo *SelectorName; // optional
SourceLocation SelectorLoc;
SourceLocation ColonLoc;
-
- ObjcKeywordInfo() {}
- ObjcKeywordInfo(IdentifierInfo *selName, SourceLocation sLoc,
- SourceLocation cLoc)
- : SelectorName(selName), SelectorLoc(sLoc), ColonLoc(cLoc) {}
};
struct ObjcKeywordDecl : ObjcKeywordInfo {
@@ -578,23 +576,10 @@ struct ObjcKeywordDecl : ObjcKeywordInfo {
IdentifierInfo *ArgumentName;
AttributeList *AttrList;
bool InvalidType; // FIXME: is this used?
-
- ObjcKeywordDecl() {}
- ObjcKeywordDecl(IdentifierInfo *selName, SourceLocation sLoc,
- SourceLocation cLoc, Action::TypeTy *tInfo,
- IdentifierInfo *argName, AttributeList *aList)
- : ObjcKeywordInfo(selName, sLoc, cLoc),
- TypeInfo(tInfo), ArgumentName(argName), AttrList(aList) {
- }
};
struct ObjcKeywordMessage : ObjcKeywordInfo {
Action::ExprTy *KeywordExpr;
-
- ObjcKeywordMessage() {}
- ObjcKeywordMessage(IdentifierInfo *selName, SourceLocation sLoc,
- SourceLocation cLoc, Action::ExprTy *expr)
- : ObjcKeywordInfo(selName, sLoc, cLoc), KeywordExpr(expr) {}
};
} // end namespace clang
OpenPOWER on IntegriCloud