forked from OSchip/llvm-project
parent
ace8c8f765
commit
36a73d2deb
|
@ -369,7 +369,7 @@ EHInputSection<ELFT>::getOffset(uintX_t Offset) {
|
|||
}
|
||||
|
||||
template <class ELFT>
|
||||
MergeInputSection<ELFT>::MergeInputSection(ObjectFile<ELFT> *F,
|
||||
MergeInputSection<ELFT>::MergeInputSection(elf::ObjectFile<ELFT> *F,
|
||||
const Elf_Shdr *Header)
|
||||
: SplitInputSection<ELFT>(F, Header, InputSectionBase<ELFT>::Merge) {}
|
||||
|
||||
|
|
|
@ -181,7 +181,7 @@ static void saveBCFile(Module &M) {
|
|||
// Merge all the bitcode files we have seen, codegen the result and return
|
||||
// the resulting ObjectFile.
|
||||
template <class ELFT>
|
||||
ObjectFile<ELFT> *SymbolTable<ELFT>::createCombinedLtoObject() {
|
||||
elf::ObjectFile<ELFT> *SymbolTable<ELFT>::createCombinedLtoObject() {
|
||||
LLVMContext Context;
|
||||
Module Combined("ld-temp.o", Context);
|
||||
IRMover Mover(Combined);
|
||||
|
|
|
@ -510,7 +510,8 @@ static void reportUndefined(SymbolTable<ELFT> &Symtab, SymbolBody *Sym) {
|
|||
}
|
||||
|
||||
template <class ELFT>
|
||||
static bool shouldKeepInSymtab(const ObjectFile<ELFT> &File, StringRef SymName,
|
||||
static bool shouldKeepInSymtab(const elf::ObjectFile<ELFT> &File,
|
||||
StringRef SymName,
|
||||
const typename ELFFile<ELFT>::Elf_Sym &Sym) {
|
||||
if (Sym.getType() == STT_FILE)
|
||||
return false;
|
||||
|
@ -752,7 +753,7 @@ StringRef Writer<ELFT>::getOutputSectionName(InputSectionBase<ELFT> *S) const {
|
|||
|
||||
template <class ELFT>
|
||||
void reportDiscarded(InputSectionBase<ELFT> *IS,
|
||||
const std::unique_ptr<ObjectFile<ELFT>> &File) {
|
||||
const std::unique_ptr<elf::ObjectFile<ELFT>> &File) {
|
||||
if (!Config->PrintGcSections || !IS || IS->Live)
|
||||
return;
|
||||
llvm::errs() << "removing unused section from '" << IS->getSectionName()
|
||||
|
|
Loading…
Reference in New Issue