aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cfi-verify
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2019-08-14 08:56:55 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2019-08-14 08:56:55 +0000
commit468919e18231d0c30b5c0f84a87145db06e3554b (patch)
treee1dbabaed556c88253db5a4bc75935b923ecf595 /llvm/tools/llvm-cfi-verify
parenta0c6a3571422826e856002714d9bb008584fe8b3 (diff)
downloadllvm-468919e18231d0c30b5c0f84a87145db06e3554b.zip
llvm-468919e18231d0c30b5c0f84a87145db06e3554b.tar.gz
llvm-468919e18231d0c30b5c0f84a87145db06e3554b.tar.bz2
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')
-rw-r--r--llvm/tools/llvm-cfi-verify/lib/FileAnalysis.cpp5
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 ce67ab4..4bf308f 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)