[PATCH] D26343: [RFC] Refactor TargetParserTests

jojo.ma via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 6 22:25:42 PST 2016


jojo created this revision.
jojo added reviewers: compnerd, jmolloy, t.p.northover, rengolin.
jojo added a subscriber: llvm-commits.

The target parser tests are a bit redundant. Refactor the tests hard-coding the expectations in the test themselves.
For example, given a CPU, what's the expcted arch, fpu, flags, etc.

Refact part of tests first, if this could be accepted ,then change all the other tests in this patttern later.


https://reviews.llvm.org/D26343

Files:
  unittests/Support/TargetParserTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26343.77007.patch
Type: text/x-patch
Size: 12340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161107/dca7a679/attachment.bin>


More information about the llvm-commits mailing list