diff options
| author | Fangrui Song <maskray@google.com> | 2019-04-26 16:21:51 +0000 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-04-26 16:21:51 +0000 |
| commit | 5015aa854dc043b2ae5d95e04e00d98518207ce5 (patch) | |
| tree | 3db5c7fcc72f692ffdd366bca46a135129e63150 | |
| parent | 4b17772b9ee7a58dccbddec99b833d6100d62a97 (diff) | |
| download | bcm5719-llvm-5015aa854dc043b2ae5d95e04e00d98518207ce5.tar.gz bcm5719-llvm-5015aa854dc043b2ae5d95e04e00d98518207ce5.zip | |
[ThinLTO] Fix X86/strong_non_prevailing.ll after llvm-nm 'r' change
llvm-svn: 359314
| -rw-r--r-- | llvm/test/ThinLTO/X86/strong_non_prevailing.ll | 4 | ||||
| -rw-r--r-- | llvm/tools/llvm-nm/llvm-nm.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/ThinLTO/X86/strong_non_prevailing.ll b/llvm/test/ThinLTO/X86/strong_non_prevailing.ll index f96e23adc3d..214af649fcf 100644 --- a/llvm/test/ThinLTO/X86/strong_non_prevailing.ll +++ b/llvm/test/ThinLTO/X86/strong_non_prevailing.ll @@ -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 diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp index ebb2c3d06b9..8f73fccf2a9 100644 --- a/llvm/tools/llvm-nm/llvm-nm.cpp +++ b/llvm/tools/llvm-nm/llvm-nm.cpp @@ -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()); |

