[all-commits] [llvm/llvm-project] b3ed72: [MC][AsmParser] Remove "in directive" from diagnos...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Dec 1 14:04:42 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b3ed72ed48e69d919fe25973ceb06a456d8be450
      https://github.com/llvm/llvm-project/commit/b3ed72ed48e69d919fe25973ceb06a456d8be450
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-12-01 (Thu, 01 Dec 2022)

  Changed paths:
    M llvm/lib/MC/MCParser/ELFAsmParser.cpp
    M llvm/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s
    M llvm/test/MC/ELF/bad-section.s
    M llvm/test/MC/ELF/gnu-type-diagnostics.s

  Log Message:
  -----------
  [MC][AsmParser] Remove "in directive" from diagnostics

This part is not useful (all the custom parsing deals with directives) and does
not appear in the majority of diagnostics.

While updating diagnostics, change "unexpected token" to more useful
diagnostics, e.g. "expected comma", "expected end of directive".




More information about the All-commits mailing list