commit | d7a60ad800d64b7c444b26a58e76ec337dbd7bc2 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Tue Feb 26 19:13:56 2013 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Tue Feb 26 19:13:56 2013 +0000 |
tree | 54307fb49246b8423b9c5bb41e5f52a4de899308 | |
parent | 518ee34467c0722e253a58efea20456e96aa5802 [diff] |
Be more careful in applying pragma weak. Fixes pr14974. GCC applies a pragma weak to a decl if it matches the mangled name. We used to apply if it matched the plain name. This patch is a compromise: we apply the pragma only if it matches the name and the decl has C language linkage. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176110 91177308-0d34-0410-b5e6-96231b3b80d8