[PATCH] D24479: [YAML] Add basic support for class hierarchies
Adam Nemet via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 15:55:04 PDT 2016
anemet created this revision.
anemet added reviewers: kledzik, hfinkel.
anemet added a subscriber: llvm-commits.
Looks like that with some minimal generalization of mapTag, we can
support inheritance in YAML I/O. In the new testcase I modified the
previous tagging example to actually store the underlying implementation
(decimal vs. fraction) in the YAML output.
I am thinking of using this pattern to produce the YAML output for
optimization remarks (see, https://reviews.llvm.org/D19678#419445). The
relevant part of the optimization remark hierarchy starts at
DiagnosticInfoOptimizationBase
(http://llvm.org/doxygen/classllvm_1_1DiagnosticInfoOptimizationBase.html)
https://reviews.llvm.org/D24479
Files:
include/llvm/Support/YAMLTraits.h
lib/Support/YAMLTraits.cpp
unittests/Support/YAMLIOTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24479.71071.patch
Type: text/x-patch
Size: 6103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160912/eb1d9b6c/attachment.bin>
More information about the llvm-commits
mailing list