diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-07-13 00:16:40 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-07-13 00:16:40 +0000 |
commit | f8681a2a3f558aeefff66513d6a8f6abaa3f3949 (patch) | |
tree | 433a7d2e52982006b51de07643beec9d592d143e /clang/lib/AST/DeclBase.cpp | |
parent | 6cc1df5d3d52187b86d301555dd1f98240f9ceb6 (diff) | |
download | bcm5719-llvm-f8681a2a3f558aeefff66513d6a8f6abaa3f3949.tar.gz bcm5719-llvm-f8681a2a3f558aeefff66513d6a8f6abaa3f3949.zip |
Instantiate attributes when first building an instantiated
VarDecl.
llvm-svn: 108218
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r-- | clang/lib/AST/DeclBase.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index ddedc65a1bd..d4f997de766 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -372,18 +372,6 @@ void Decl::swapAttrs(Decl *RHS) { RHS->HasAttrs = true; } -void Decl::copyAttrs(Decl *SRC) { - if (!SRC->hasAttrs()) - return; - ASTContext &Context = getASTContext(); - for (const Attr *attr = SRC->getAttrs(); attr; attr = attr->getNext()) { - Attr *NewAttr = attr->clone(Context); - addAttr(const_cast<Attr*>(NewAttr)); - } - HasAttrs = true; -} - - void Decl::Destroy(ASTContext &C) { // Free attributes for this decl. if (HasAttrs) { |