diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-08-20 22:05:50 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-08-20 22:05:50 +0000 |
commit | 578ee4070c00a87df183360072d299976d7712a2 (patch) | |
tree | fc21324dd6e019170d905dbdc1a8da698065b6a7 /llvm/lib/VMCore/AsmWriter.cpp | |
parent | 196f71006eec8b716c0a3523b8491ee7d75d7dea (diff) | |
download | bcm5719-llvm-578ee4070c00a87df183360072d299976d7712a2.tar.gz bcm5719-llvm-578ee4070c00a87df183360072d299976d7712a2.zip |
Create the new linker type "linker_private_weak_def_auto".
It's similar to "linker_private_weak", but it's known that the address of the
object is not taken. For instance, functions that had an inline definition, but
the compiler decided not to inline it. Note, unlike linker_private and
linker_private_weak, linker_private_weak_def_auto may have only default
visibility. The symbols are removed by the linker from the final linked image
(executable or dynamic library).
llvm-svn: 111684
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index c925a7e3391..c7f27c62639 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1435,6 +1435,9 @@ static void PrintLinkage(GlobalValue::LinkageTypes LT, case GlobalValue::LinkerPrivateWeakLinkage: Out << "linker_private_weak "; break; + case GlobalValue::LinkerPrivateWeakDefAutoLinkage: + Out << "linker_private_weak_def_auto "; + break; case GlobalValue::InternalLinkage: Out << "internal "; break; case GlobalValue::LinkOnceAnyLinkage: Out << "linkonce "; break; case GlobalValue::LinkOnceODRLinkage: Out << "linkonce_odr "; break; |