summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-07-14 14:58:18 +0000
committerSteve Naroff <snaroff@apple.com>2009-07-14 14:58:18 +0000
commit5ec6ff7678d04b1d972b0ccc8a0323898ec3ff04 (patch)
tree6a53df84e30816c0e2a430acbc53a8b578cfb531 /clang/lib/AST/Decl.cpp
parentf34f8634e7584e8f3fa6d62915567fb5487cd826 (diff)
downloadbcm5719-llvm-5ec6ff7678d04b1d972b0ccc8a0323898ec3ff04.tar.gz
bcm5719-llvm-5ec6ff7678d04b1d972b0ccc8a0323898ec3ff04.zip
Add a "TypeSpecStartLoc" to FieldDecl. Patch contributed by Enea Zaffanella.
Note: One day, it might be useful to consider adding this info to DeclGroup (as the comments in FunctionDecl/VarDecl suggest). For now, I think this works fine. I considered moving this to ValueDecl (a common ancestor of FunctionDecl/VarDecl/FieldDecl), however this would add overhead to EnumConstantDecl (which would burn memory and isn't necessary). llvm-svn: 75635
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 19f17184185..728724f1b3d 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -149,8 +149,8 @@ BlockDecl *BlockDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L) {
FieldDecl *FieldDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L,
IdentifierInfo *Id, QualType T, Expr *BW,
- bool Mutable) {
- return new (C) FieldDecl(Decl::Field, DC, L, Id, T, BW, Mutable);
+ bool Mutable, SourceLocation TSSL) {
+ return new (C) FieldDecl(Decl::Field, DC, L, Id, T, BW, Mutable, TSSL);
}
bool FieldDecl::isAnonymousStructOrUnion() const {
OpenPOWER on IntegriCloud