summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorFrederic Cambus <fred@statdns.com>2021-12-20 16:22:01 +0100
committerFrederic Cambus <fred@statdns.com>2021-12-20 16:32:02 +0100
commitf6ba5c4d5f228366a016534e7d1cf099d274fced (patch)
tree34a733288e5fb7ddfcceb73b2441e6778567f968 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentab9078f3d369656c09b5e34bcda6a5d62699a3fb (diff)
[llvm-readobj] Check ELFType value first when checking for OpenBSD notes.
Checking ELFType == ELF::ET_CORE first skips string comparison for the majority of cases. Suggested by Fangrui Song in D114635 for a similar construct.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions