[ThinLTO] Fix X86/strong_non_prevailing.ll after llvm-nm 'r' change

llvm-svn: 359314
This commit is contained in:
Fangrui Song 2019-04-26 16:21:51 +00:00
parent 4b17772b9e
commit 5015aa854d
2 changed files with 5 additions and 2 deletions

View File

@ -12,5 +12,5 @@ $__llvm_profile_filename = comdat any
@__llvm_profile_filename = constant [19 x i8] c"default_%m.profraw\00", comdat
; EXPORTED: N __llvm_profile_filename
; NOT_EXPORTED-NOT: N __llvm_profile_filename
; EXPORTED: R __llvm_profile_filename
; NOT_EXPORTED-NOT: R __llvm_profile_filename

View File

@ -928,6 +928,9 @@ static char getSymbolNMTypeChar(ELFObjectFileBase &Obj,
// OK, this is ELF
elf_symbol_iterator SymI(I);
if (SymI->getELFType() == ELF::STT_GNU_IFUNC)
return 'i';
Expected<elf_section_iterator> SecIOrErr = SymI->getSection();
if (!SecIOrErr) {
consumeError(SecIOrErr.takeError());