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

Eric Astor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 30 14:13:03 PDT 2022


epastor created this revision.
epastor added reviewers: mstorsjo, rnk.
Herald added a subscriber: hiraditya.
Herald added a project: All.
epastor requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128944

Files:
  llvm/lib/MC/MCParser/MasmParser.cpp
  llvm/test/tools/llvm-ml/anonymous_labels.asm
  llvm/test/tools/llvm-ml/anonymous_labels_errors.asm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128944.441517.patch
Type: text/x-patch
Size: 3997 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220630/640f407a/attachment.bin>


More information about the llvm-commits mailing list