[PATCH] [LIT] Add NativeMetricValue type to wrap types supported by the json encoder.
Eric Fiselier
eric at efcs.ca
Mon Dec 8 16:47:18 PST 2014
Hi ddunbar,
The following types can be encoded and decoded by the json library:
`dict`, `list`, `tuple`, `str`, `unicode`, `int`, `long`, `float`, `bool`, `NoneType`.
`NativeMetricValue` can be constructed with any of these types, and used as part of Test.Result.
This patch also adds a toMetricValue function that converts a value into a MetricValue.
http://reviews.llvm.org/D6576
Files:
utils/lit/lit/Test.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6576.17062.patch
Type: text/x-patch
Size: 1132 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141209/41b80d3b/attachment.bin>
More information about the cfe-commits
mailing list