diff options
author | Frederic Cambus <fred@statdns.com> | 2021-12-20 16:22:01 +0100 |
---|---|---|
committer | Frederic Cambus <fred@statdns.com> | 2021-12-20 16:32:02 +0100 |
commit | f6ba5c4d5f228366a016534e7d1cf099d274fced (patch) | |
tree | 34a733288e5fb7ddfcceb73b2441e6778567f968 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | ab9078f3d369656c09b5e34bcda6a5d62699a3fb (diff) | |
download | llvm-f6ba5c4d5f228366a016534e7d1cf099d274fced.zip llvm-f6ba5c4d5f228366a016534e7d1cf099d274fced.tar.gz llvm-f6ba5c4d5f228366a016534e7d1cf099d274fced.tar.bz2 |
[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 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions