Move a function to a file where it is used.

llvm-svn: 256410
This commit is contained in:
Rui Ueyama
2015-12-25 07:01:09 +00:00
parent 7d332f5eb7
commit 89f4ec74c1
3 changed files with 10 additions and 12 deletions

View File

@@ -604,6 +604,15 @@ template <class ELFT> static bool includeInSymtab(const SymbolBody &B) {
return true;
}
static bool includeInDynamicSymtab(const SymbolBody &B) {
uint8_t V = B.getVisibility();
if (V != STV_DEFAULT && V != STV_PROTECTED)
return false;
if (Config->ExportDynamic || Config->Shared)
return true;
return B.isUsedInDynamicReloc();
}
// Create output section objects and add them to OutputSections.
template <class ELFT> void Writer<ELFT>::createSections() {
// .interp needs to be on the first page in the output file.