[PATCH] D83725: [llvm-mc] Add --doc-id=<id> to support multiple documents in a file
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 15:32:10 PDT 2020
MaskRay created this revision.
MaskRay added reviewers: dblaikie, echristo, grimar, jhenderson.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
llvm-mc tests tend to (a) split into multiple files or (b) combine too
much stuff in one file if people don't like splitting.
yaml2doc supports --docnum=<num> to allow multiple documents in a file.
Combing tests prudently can improve readability. This patch adds a similar
--doc-id=<id> to llvm-mc.
Usage: llvm-mc --doc-id=aa %s
#-- aa
test aa
#-- bb
test bb
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83725
Files:
llvm/test/tools/llvm-mc/doc-id-disassemble.s
llvm/test/tools/llvm-mc/doc-id.s
llvm/tools/llvm-mc/llvm-mc.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83725.277593.patch
Type: text/x-patch
Size: 3963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200713/d7b44e8e/attachment.bin>
More information about the llvm-commits
mailing list