diff options
author | Dale Johannesen <dalej@apple.com> | 2008-09-08 21:21:49 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-09-08 21:21:49 +0000 |
commit | ea9285e6430696a0f8a1dfe59d2ade0c2df8b9e5 (patch) | |
tree | 23b89073f06feb76448930bc0a48577622d75b7e /llvm/lib/CodeGen/AsmPrinter | |
parent | ab4928a6e5f364dc3562d75ab1bdf5626a8ee818 (diff) | |
download | bcm5719-llvm-ea9285e6430696a0f8a1dfe59d2ade0c2df8b9e5.tar.gz bcm5719-llvm-ea9285e6430696a0f8a1dfe59d2ade0c2df8b9e5.zip |
Don't suppress no-dead-strip for used static functions.
llvm-svn: 55962
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 6d3d133930e..273253ae23c 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -462,7 +462,7 @@ void AsmPrinter::EmitLLVMUsedList(Constant *List) { for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i) { const GlobalValue *GV = findGlobalValue(InitList->getOperand(i)); - if (GV && !GV->hasInternalLinkage()) { + if (GV && (!GV->hasInternalLinkage() || isa<Function>(GV))) { O << Directive; EmitConstantValueOnly(InitList->getOperand(i)); O << '\n'; |