forked from OSchip/llvm-project
parent
788fe38f99
commit
f08b592390
|
@ -330,18 +330,18 @@ static bool canMergeToProgbits(unsigned Type) {
|
||||||
Type == SHT_NOTE;
|
Type == SHT_NOTE;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class ELFT> static void reportDiscarded(InputSectionBase *IS) {
|
static void reportDiscarded(InputSectionBase *IS) {
|
||||||
if (!Config->PrintGcSections)
|
if (!Config->PrintGcSections)
|
||||||
return;
|
return;
|
||||||
message("removing unused section from '" + IS->Name + "' in file '" +
|
message("removing unused section from '" + IS->Name + "' in file '" +
|
||||||
IS->getFile<ELFT>()->getName());
|
IS->File->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
void OutputSectionFactory::addInputSec(InputSectionBase *IS,
|
void OutputSectionFactory::addInputSec(InputSectionBase *IS,
|
||||||
StringRef OutsecName) {
|
StringRef OutsecName) {
|
||||||
if (!IS->Live) {
|
if (!IS->Live) {
|
||||||
reportDiscarded<ELFT>(IS);
|
reportDiscarded(IS);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue