[all-commits] [llvm/llvm-project] f6ba5c: [llvm-readobj] Check ELFType value first when chec...

Frederic Cambus via All-commits all-commits at lists.llvm.org
Mon Dec 20 07:33:16 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f6ba5c4d5f228366a016534e7d1cf099d274fced
      https://github.com/llvm/llvm-project/commit/f6ba5c4d5f228366a016534e7d1cf099d274fced
  Author: Frederic Cambus <fred at statdns.com>
  Date:   2021-12-20 (Mon, 20 Dec 2021)

  Changed paths:
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list