[all-commits] [llvm/llvm-project] 795457: [MC] Add ELF::getSymbolInfo and fix bitwise OR bet...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Sep 27 18:32:12 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 795457f653fb5e9f769678ed025ecb63d7bfbf53
      https://github.com/llvm/llvm-project/commit/795457f653fb5e9f769678ed025ecb63d7bfbf53
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-09-28 (Mon, 28 Sep 2026)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/ELF.h
    M llvm/include/llvm/Object/ELFTypes.h
    M llvm/lib/MC/ELFObjectWriter.cpp

  Log Message:
  -----------
  [MC] Add ELF::getSymbolInfo and fix bitwise OR between enumeration types. NFC (#226860)

`ELF::STT_FILE | ELF::STB_LOCAL` puts the binding in the type bits,
which only works because STB_LOCAL is 0.

It combines enumerators from two distinct unnamed enums, which is
deprecated in C++20 and ill-formed in C++26 (P2864R2).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list