[all-commits] [llvm/llvm-project] 7d1a29: [ms] [llvm-ml] Add support for anonymous labels (`...

Eric Astor via All-commits all-commits at lists.llvm.org
Thu Jul 7 07:29:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d1a295484e3e6fd2dddec9ad73d3e227ed4629c
      https://github.com/llvm/llvm-project/commit/7d1a295484e3e6fd2dddec9ad73d3e227ed4629c
  Author: Eric Astor <epastor at google.com>
  Date:   2022-07-07 (Thu, 07 Jul 2022)

  Changed paths:
    M llvm/lib/MC/MCParser/MasmParser.cpp
    A llvm/test/tools/llvm-ml/anonymous_labels.asm
    A llvm/test/tools/llvm-ml/anonymous_labels_errors.asm

  Log Message:
  -----------
  [ms] [llvm-ml] Add support for anonymous labels (`@@`, `@B`, `@F`)

ml.exe and ml64.exe support the use of anonymous labels, with @B and @F referring to the previous and next anonymous label respectively.

We add similar support to llvm-ml, with the exception that we are unable to emit an error message for an @F expression not followed by a @@ label.

Reviewed By: rnk

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




More information about the All-commits mailing list