summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-03-02 21:41:48 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-03-02 21:41:48 +0000
commitde6a39f759c1f2aa5873d1c35ef21083144fe508 (patch)
tree5740dedb0abf7603afede91cd5c0881fcb75b7aa /clang/lib/Sema/SemaDecl.cpp
parenta3c5c769d66f555c11576f981daadf9fbe93a024 (diff)
downloadbcm5719-llvm-de6a39f759c1f2aa5873d1c35ef21083144fe508.tar.gz
bcm5719-llvm-de6a39f759c1f2aa5873d1c35ef21083144fe508.zip
Process #pragma weak only after we know the linkage of the function or variable
we are looking at. llvm-svn: 176414
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 2416f39442b..c21cf03844a 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -4900,6 +4900,7 @@ Sema::ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC,
NewVD->setInvalidDecl();
}
+ ProcessPragmaWeak(S, NewVD);
checkAttributesAfterMerging(*this, *NewVD);
// If this is a locally-scoped extern C variable, update the map of
@@ -6368,6 +6369,7 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
}
}
+ ProcessPragmaWeak(S, NewFD);
checkAttributesAfterMerging(*this, *NewFD);
AddKnownFunctionAttributes(NewFD);
OpenPOWER on IntegriCloud