[all-commits] [llvm/llvm-project] fb9942: [AsmParser] Add source location to all errors rela...

Alexander Richardson via All-commits all-commits at lists.llvm.org
Wed Nov 11 09:01:09 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fb9942f87628101e1d72da1942416189b8f43825
      https://github.com/llvm/llvm-project/commit/fb9942f87628101e1d72da1942416189b8f43825
  Author: Alex Richardson <Alexander.Richardson at cl.cam.ac.uk>
  Date:   2020-11-11 (Wed, 11 Nov 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCStreamer.h
    M llvm/lib/MC/MCParser/AsmParser.cpp
    M llvm/lib/MC/MCParser/MasmParser.cpp
    M llvm/lib/MC/MCStreamer.cpp
    M llvm/test/MC/X86/cfi-open-within-another-crash.s
    M llvm/test/MC/X86/cfi-scope-errors.s
    R llvm/test/MC/X86/cfi-scope-unclosed.s

  Log Message:
  -----------
  [AsmParser] Add source location to all errors related to .cfi directives

I was trying to add .cfi_ annotations to assembly code in the FreeBSD
kernel and changed a macro that then resulted in incorrectly nested
directives. However, clang's diagnostics said the error was happening at
<unknown>:0. This addresses one of the TODOs added in D51695.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D89787




More information about the All-commits mailing list