aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-07-13 00:16:40 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-07-13 00:16:40 +0000
commit8dd0c5626455cdf94280783e85e413eed6cbf3d9 (patch)
treec1ab332949b2e757af3c9a0bae5d6306b4b485d3 /lib/AST/DeclBase.cpp
parent669eed8d676458c701f45f7fd686f01de2dee53b (diff)
Instantiate attributes when first building an instantiated
VarDecl. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r--lib/AST/DeclBase.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp
index ddedc65a1b..d4f997de76 100644
--- a/lib/AST/DeclBase.cpp
+++ b/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) {