diff options
| author | George Rimar <grimar@accesssoftek.com> | 2019-08-14 08:56:55 +0000 |
|---|---|---|
| committer | George Rimar <grimar@accesssoftek.com> | 2019-08-14 08:56:55 +0000 |
| commit | 468919e18231d0c30b5c0f84a87145db06e3554b (patch) | |
| tree | e1dbabaed556c88253db5a4bc75935b923ecf595 /llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp | |
| parent | a0c6a3571422826e856002714d9bb008584fe8b3 (diff) | |
| download | bcm5719-llvm-468919e18231d0c30b5c0f84a87145db06e3554b.tar.gz bcm5719-llvm-468919e18231d0c30b5c0f84a87145db06e3554b.zip | |
Revert r368812 "[llvm/Object] - Convert SectionRef::getName() to return Expected<>"
It broke clang BB: http://lab.llvm.org:8011/builders/clang-x86_64-debian-fast/builds/16455
llvm-svn: 368813
Diffstat (limited to 'llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp')
| -rw-r--r-- | llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp b/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp index ce67ab4eb8d..4bf308f87c2 100644 --- a/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp +++ b/llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp @@ -449,10 +449,9 @@ Error FileAnalysis::parseCodeSections() { // Avoid checking the PLT since it produces spurious failures on AArch64 // when ignoring DWARF data. - Expected<StringRef> NameOrErr = Section.getName(); - if (NameOrErr && *NameOrErr == ".plt") + StringRef SectionName; + if (!Section.getName(SectionName) && SectionName == ".plt") continue; - consumeError(NameOrErr.takeError()); Expected<StringRef> Contents = Section.getContents(); if (!Contents) |

