[PATCH] D27514: Add -verify-asm-diags mode to llvm-mc
Oliver Stannard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 7 03:46:19 PST 2016
olista01 created this revision.
olista01 added reviewers: niravd, grimar, santonen.daniel.
olista01 added a subscriber: llvm-commits.
olista01 set the repository for this revision to rL LLVM.
Similar to clang's -verify option, this parses comments in the source containing expected diagnostics, and checks that the emitted diagnostics match them. It is intended to be used in tests in the same way as the clang option.
I haven't been able to share any code other than the ParseHelper class with the clang implementation, because clang uses it's own source manager and diagnostic classes, which are different from LLVM's.
Repository:
rL LLVM
https://reviews.llvm.org/D27514
Files:
test/MC/ARM/error-location.s
test/MC/ARM/verify-diagnostics-all-matching.s
test/MC/ARM/verify-diagnostics-comment-parsing.s
test/MC/ARM/verify-diagnostics-expected-not-seen.s
test/MC/ARM/verify-diagnostics-seen-not-expected.s
tools/llvm-mc/llvm-mc.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27514.80565.patch
Type: text/x-patch
Size: 17889 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161207/6da423fc/attachment.bin>
More information about the llvm-commits
mailing list