[llvm] r359314 - [ThinLTO] Fix X86/strong_non_prevailing.ll after llvm-nm 'r' change
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 26 09:21:51 PDT 2019
Author: maskray
Date: Fri Apr 26 09:21:51 2019
New Revision: 359314
URL: http://llvm.org/viewvc/llvm-project?rev=359314&view=rev
Log:
[ThinLTO] Fix X86/strong_non_prevailing.ll after llvm-nm 'r' change
Modified:
llvm/trunk/test/ThinLTO/X86/strong_non_prevailing.ll
llvm/trunk/tools/llvm-nm/llvm-nm.cpp
Modified: llvm/trunk/test/ThinLTO/X86/strong_non_prevailing.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ThinLTO/X86/strong_non_prevailing.ll?rev=359314&r1=359313&r2=359314&view=diff
==============================================================================
--- llvm/trunk/test/ThinLTO/X86/strong_non_prevailing.ll (original)
+++ llvm/trunk/test/ThinLTO/X86/strong_non_prevailing.ll Fri Apr 26 09:21:51 2019
@@ -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
Modified: llvm/trunk/tools/llvm-nm/llvm-nm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-nm/llvm-nm.cpp?rev=359314&r1=359313&r2=359314&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-nm/llvm-nm.cpp (original)
+++ llvm/trunk/tools/llvm-nm/llvm-nm.cpp Fri Apr 26 09:21:51 2019
@@ -928,6 +928,9 @@ static char getSymbolNMTypeChar(ELFObjec
// 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());
More information about the llvm-commits
mailing list