diff options
author | Dale Johannesen <dalej@apple.com> | 2008-09-03 20:34:58 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-09-03 20:34:58 +0000 |
commit | 61e6093dc8d92def3dfe0b379df83f70b0558247 (patch) | |
tree | 133113d6a1e4f964762bba0991fd16cec37be158 /include | |
parent | 7946e7b8a4058fc2c76f782fa87340738caafaec (diff) | |
download | external_llvm-61e6093dc8d92def3dfe0b379df83f70b0558247.zip external_llvm-61e6093dc8d92def3dfe0b379df83f70b0558247.tar.gz external_llvm-61e6093dc8d92def3dfe0b379df83f70b0558247.tar.bz2 |
Do not emit a UsedDirective for things in the llvm.used
list that have internal linkage; the linker doesn't need
or want this. (These objects must still be preserved
at compile time, so just removing them from the llvm.used
list doesn't work.) Should affect only Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/AsmPrinter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/AsmPrinter.h b/include/llvm/CodeGen/AsmPrinter.h index 08c3197..6ccef8c 100644 --- a/include/llvm/CodeGen/AsmPrinter.h +++ b/include/llvm/CodeGen/AsmPrinter.h @@ -363,6 +363,7 @@ namespace llvm { void printVisibility(const std::string& Name, unsigned Visibility) const; private: + const GlobalValue *findGlobalValue(const Constant* CV); void EmitLLVMUsedList(Constant *List); void EmitXXStructorList(Constant *List); void EmitConstantPool(unsigned Alignment, const char *Section, |