[PATCH] [YAML] Add new method `yaml::IO::maskedBitSetCase()` to simplify handling of bitset flags with enumeration block
Simon Atanasyan
simon at atanasyan.com
Thu May 22 02:17:35 PDT 2014
The updated patch has the following changes:
# Keep the `bitSetCase()` unchanged and add new method `maskedBitSetCase()`.
# Update the yaml documentation.
I considered to break the `Flags` field into two parts. But I could not invent good names for these fields. The "enumeration" values have different meanings for different targets. Some targets do not use the `Flags` field at all. Moreover I am not sure that there is no target with more than one "enumeration" blocks in the `Flag` field.
http://reviews.llvm.org/D3807
Files:
docs/YamlIO.rst
include/llvm/Support/YAMLTraits.h
lib/Object/ELFYAML.cpp
test/Object/obj2yaml.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3807.9681.patch
Type: text/x-patch
Size: 5540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140522/7b01b4fc/attachment.bin>
More information about the llvm-commits
mailing list