[all-commits] [llvm/llvm-project] 56262a: Fix debug line info when line markers are present ...

RoboTux via All-commits all-commits at lists.llvm.org
Tue Jun 16 08:13:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 56262a74c315f7a654915ac6053d7d5a3b4f71d7
      https://github.com/llvm/llvm-project/commit/56262a74c315f7a654915ac6053d7d5a3b4f71d7
  Author: Leandro Vaz <leandrov at graphcore.ai>
  Date:   2020-06-16 (Tue, 16 Jun 2020)

  Changed paths:
    M llvm/lib/MC/MCParser/AsmParser.cpp
    A llvm/test/MC/AsmParser/line-marker-inside-macro.s

  Log Message:
  -----------
  Fix debug line info when line markers are present inside macros.

Compiling assembly files when newlines are reduced to line markers within a `.macro` context will generate wrong information in `.debug_line` section.
This patch fixes this issue by evaluating line markers within the macro scope but not when they are used and evaluated.

Reviewed By: probinson

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




More information about the All-commits mailing list