[llvm-readobj] Unwrap the value first to avoid the error
authorPetr Hosek <phosek@chromium.org>
Sat, 17 Aug 2019 00:07:26 +0000 (00:07 +0000)
committerPetr Hosek <phosek@chromium.org>
Sat, 17 Aug 2019 00:07:26 +0000 (00:07 +0000)
commit0b5ecef299fd7b430ddaace420cb2f10f1846873
treecf808150fcd345f3609953aed3bedc8ce4d8c550
parent43c8b19546ae646630898a7b0fe0a517633410de
[llvm-readobj] Unwrap the value first to avoid the error

This addresses the issue introduced in r369169, we need to unwrap
the value first before we can check whether it's empty. This also
swaps the two branches to put the common path first which should
be NFC.

llvm-svn: 369177
llvm/test/tools/llvm-readobj/gnu-notes.test
llvm/tools/llvm-readobj/ELFDumper.cpp