[llvm-commits] [llvm] r55962 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Dale Johannesen
dalej at apple.com
Mon Sep 8 14:21:49 PDT 2008
Author: johannes
Date: Mon Sep 8 16:21:49 2008
New Revision: 55962
URL: http://llvm.org/viewvc/llvm-project?rev=55962&view=rev
Log:
Don't suppress no-dead-strip for used static functions.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=55962&r1=55961&r2=55962&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Mon Sep 8 16:21:49 2008
@@ -462,7 +462,7 @@
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';
More information about the llvm-commits
mailing list