diff options
author | Nico Weber <thakis@chromium.org> | 2022-01-12 09:42:05 -0500 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2022-01-12 09:42:05 -0500 |
commit | d3b90f41041c0e2f0c8de00a3d3cd1b7d5f01367 (patch) | |
tree | 262e03082ad01938e4c7f7a8c93a4336bf4ae5a1 /llvm/lib/Object/XCOFFObjectFile.cpp | |
parent | 9a1ce35d7e7fdfa6d45fb24abc3ad30e8eb6c6f4 (diff) | |
download | llvm-d3b90f41041c0e2f0c8de00a3d3cd1b7d5f01367.zip llvm-d3b90f41041c0e2f0c8de00a3d3cd1b7d5f01367.tar.gz llvm-d3b90f41041c0e2f0c8de00a3d3cd1b7d5f01367.tar.bz2 |
Revert "[llvm-readobj][XCOFF] dump auxiliary symbols."
This reverts commit aad49c8eb9849be57c562f8e2b7fbbe816183343.
Breaks tests on Windows, see comments on https://reviews.llvm.org/D113825
Diffstat (limited to 'llvm/lib/Object/XCOFFObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/XCOFFObjectFile.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Object/XCOFFObjectFile.cpp b/llvm/lib/Object/XCOFFObjectFile.cpp index f2f6d70..9b0a5ef 100644 --- a/llvm/lib/Object/XCOFFObjectFile.cpp +++ b/llvm/lib/Object/XCOFFObjectFile.cpp @@ -1112,12 +1112,8 @@ bool XCOFFSymbolRef::isFunction() const { return true; Expected<XCOFFCsectAuxRef> ExpCsectAuxEnt = getXCOFFCsectAuxRef(); - if (!ExpCsectAuxEnt) { - // If we could not get the CSECT auxiliary entry, then treat this symbol as - // if it isn't a function. Consume the error and return `false` to move on. - consumeError(ExpCsectAuxEnt.takeError()); + if (!ExpCsectAuxEnt) return false; - } const XCOFFCsectAuxRef CsectAuxRef = ExpCsectAuxEnt.get(); |