[PATCH] D45284: [RISCV] More validations on the input value of -march=
Ana Pazos via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 23 18:15:13 PDT 2018
apazos updated this revision to Diff 143674.
apazos added a comment.
Hi Alex, the refactoring will be simple and can be done later when we need it, all the pieces are already parsed (type, name, major, minor) and are in strings, we will only need to convert to the preferred type (enum, int, etc).
I changed the code to not error out on unsupported extension, allowing all the non-standard extensions to be parsed and the format errors reported. Only when we try to set target features I then enforce unsupported extension.
This way I could push all my tests.
https://reviews.llvm.org/D45284
Files:
include/clang/Basic/DiagnosticDriverKinds.td
lib/Driver/ToolChains/Arch/RISCV.cpp
test/Driver/riscv-arch.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45284.143674.patch
Type: text/x-patch
Size: 33840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180424/8c22e113/attachment-0001.bin>
More information about the cfe-commits
mailing list