[all-commits] [llvm/llvm-project] d7398a: [MC] Use reportError for .uleb128/.sleb128 diagnostic

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Aug 9 17:32:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d7398a355461b3a9f1685b0d2bf42c157b159e8f
      https://github.com/llvm/llvm-project/commit/d7398a355461b3a9f1685b0d2bf42c157b159e8f
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-08-09 (Wed, 09 Aug 2023)

  Changed paths:
    M llvm/lib/MC/MCAssembler.cpp
    A llvm/test/MC/ELF/leb128-err.s
    R llvm/test/MC/X86/invalid-sleb.s

  Log Message:
  -----------
  [MC] Use reportError for .uleb128/.sleb128 diagnostic

User errors should use reportError. reportError allows us to continue parsing
the file and collect more diagnostics.

MC/ELF/leb128-err.s is adapted from MC/RISCV/riscv64-64b-pcrel.s




More information about the All-commits mailing list