diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-06 05:00:46 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-06 05:00:46 +0000 |
commit | 0024937dbb23752f606846f4a12aafc712bcde33 (patch) | |
tree | b331a97395796a3c1702ef2565d92a3afe68963e /lib/Format/Format.cpp | |
parent | 3e5ebf1a05603e08f2d0b2b2a5fa9406fe4cfb22 (diff) |
When an internal-linkage function or variable is declared within an extern "C"
linkage specification, and is marked as __attribute__((used)), try to also give
it the unmangled name (by emitting an internal linkage alias) if nothing else
within the translation unit would use that name. This allows inline asm in that
translation unit to use the entity via its unmangled name, which people
apparently rely on.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions