diff options
author | Steve Naroff <snaroff@apple.com> | 2009-07-14 14:58:18 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-07-14 14:58:18 +0000 |
commit | ea218b8e8f9ba82d1c76bcb7e86d121a5f65ebed (patch) | |
tree | f99a9a206cec20abda08741b4f3e77499238fdb6 /lib/AST/Decl.cpp | |
parent | 1a75ee270941dd8b5c7fdd23dffb5e81a0fd7290 (diff) |
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).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 19f1718418..728724f1b3 100644 --- a/lib/AST/Decl.cpp +++ b/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 { |