[PATCH] D20259: ELF: Use canOmitFromDynSym() to control which symbols may be omitted from the symbol table.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Fri May 13 14:35:44 PDT 2016
pcc created this revision.
pcc added a reviewer: rafael.
pcc added a subscriber: llvm-commits.
pcc added a dependency: D20258: IR: Introduce can_omit_from_dynsym attribute..
Herald added a subscriber: joker.eph.
Part of the fix for PR27553.
Depends on D20258
http://reviews.llvm.org/D20259
Files:
ELF/InputFiles.cpp
test/ELF/lto/internalize-exportdyn.ll
Index: test/ELF/lto/internalize-exportdyn.ll
===================================================================
--- test/ELF/lto/internalize-exportdyn.ll
+++ test/ELF/lto/internalize-exportdyn.ll
@@ -19,7 +19,7 @@
ret void
}
-define linkonce_odr void @zed() unnamed_addr {
+define linkonce_odr void @zed() can_omit_from_dynsym {
ret void
}
Index: ELF/InputFiles.cpp
===================================================================
--- ELF/InputFiles.cpp
+++ ELF/InputFiles.cpp
@@ -568,7 +568,7 @@
if (GV) {
if (GV->isThreadLocal())
Type = STT_TLS;
- CanOmitFromDynSym = canBeOmittedFromSymbolTable(GV);
+ CanOmitFromDynSym = GV->canOmitFromDynSym();
}
uint8_t Visibility;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20259.57255.patch
Type: text/x-patch
Size: 717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160513/0e690d2a/attachment.bin>
More information about the llvm-commits
mailing list