projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
369bbbb
)
Don't suppress no-dead-strip for used static functions.
author
Dale Johannesen
<dalej@apple.com>
Mon, 8 Sep 2008 21:21:49 +0000
(21:21 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Mon, 8 Sep 2008 21:21:49 +0000
(21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55962
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 6d3d133930ebea90ec582798952c1e2c5ad10d3d..273253ae23c676dcefe761421c776e56281e7e7a 100644
(file)
--- a/
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/
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';