mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 15:39:28 +00:00
Don't suppress no-dead-strip for used static functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55962 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
369bbbb421
commit
14b0a2b137
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user