forked from OSchip/llvm-project
Don't suppress no-dead-strip for used static functions.
llvm-svn: 55962
This commit is contained in:
parent
ab4928a6e5
commit
ea9285e643
|
@ -462,7 +462,7 @@ void AsmPrinter::EmitLLVMUsedList(Constant *List) {
|
||||||
|
|
||||||
for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = InitList->getNumOperands(); i != e; ++i) {
|
||||||
const GlobalValue *GV = findGlobalValue(InitList->getOperand(i));
|
const GlobalValue *GV = findGlobalValue(InitList->getOperand(i));
|
||||||
if (GV && !GV->hasInternalLinkage()) {
|
if (GV && (!GV->hasInternalLinkage() || isa<Function>(GV))) {
|
||||||
O << Directive;
|
O << Directive;
|
||||||
EmitConstantValueOnly(InitList->getOperand(i));
|
EmitConstantValueOnly(InitList->getOperand(i));
|
||||||
O << '\n';
|
O << '\n';
|
||||||
|
|
Loading…
Reference in New Issue