Don't suppress no-dead-strip for used static functions.

llvm-svn: 55962
This commit is contained in:
Dale Johannesen 2008-09-08 21:21:49 +00:00
parent ab4928a6e5
commit ea9285e643
1 changed files with 1 additions and 1 deletions

View File

@ -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';