[all-commits] [llvm/llvm-project] 880c9c: [MC] Allow .cfi_sections with empty section list

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Feb 25 22:30:06 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 880c9c56c1172418853cc81eeced492b4f0cefc2
      https://github.com/llvm/llvm-project/commit/880c9c56c1172418853cc81eeced492b4f0cefc2
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-02-25 (Thu, 25 Feb 2021)

  Changed paths:
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/lib/MC/MCStreamer.cpp
    A llvm/test/MC/ELF/cfi-sections-empty.s
    M llvm/test/MC/ELF/cfi.s

  Log Message:
  -----------
  [MC] Allow .cfi_sections with empty section list

GNU as supports this. This mode silently ignores
.cfi_startproc/.cfi_endproc and .cfi_* in between.

Also drop a diagnostic `in '.cfi_sections' directive`: the diagnostic
already includes the line and it is clear the line is a `.cfi_sections` directive.




More information about the All-commits mailing list