Simon Atanasyan
84a0dc323d
[YAML] Add an optional argument EnumMask to the yaml::IO::bitSetCase().
...
Some bit-set fields used in ELF file headers in fact contain two parts.
The first one is a regular bit-field. The second one is an enumeraion.
For example ELF header `e_flags` for MIPS target might contain the
following values:
Bit-set values:
EF_MIPS_NOREORDER = 0x00000001
EF_MIPS_PIC = 0x00000002
EF_MIPS_CPIC = 0x00000004
EF_MIPS_ABI2 = 0x00000020
Enumeration:
EF_MIPS_ARCH_32 = 0x50000000
EF_MIPS_ARCH_64 = 0x60000000
EF_MIPS_ARCH_32R2 = 0x70000000
EF_MIPS_ARCH_64R2 = 0x80000000
For printing bit-sets we use the `yaml::IO::bitSetCase()`. It does not
support bit-set/enumeration combinations and prints too many flags from
an enumeration part. This patch fixes this problem. New method
`yaml::IO::maskedBitSetCase()` handle "enumeration" part of bitset
defined by provided mask.
Patch reviewed by Nick Kledzik and Sean Silva.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209504 91177308-0d34-0410-b5e6-96231b3b80d8
2014-05-23 08:07:09 +00:00
..
2010-11-29 19:44:50 +00:00
2014-01-09 03:28:55 +00:00
2014-04-18 14:54:51 +00:00
2014-01-20 10:18:42 +00:00
2014-01-06 04:14:03 +00:00
2014-04-14 00:51:57 +00:00
2013-01-10 00:45:19 +00:00
2014-04-29 16:31:29 +00:00
2014-04-29 17:07:42 +00:00
2011-11-04 18:30:30 +00:00
2014-04-09 06:08:46 +00:00
2013-05-01 21:01:06 +00:00
2014-04-07 04:17:22 +00:00
2013-05-01 22:58:00 +00:00
2014-04-07 23:12:20 +00:00
2014-04-14 00:51:57 +00:00
2014-03-27 22:36:06 +00:00
2014-04-05 21:53:04 +00:00
2013-07-16 17:14:33 +00:00
2014-05-06 01:44:26 +00:00
2013-02-05 23:26:02 +00:00
2013-01-10 00:45:19 +00:00
2013-07-26 16:54:23 +00:00
2013-07-26 16:54:23 +00:00
2014-04-21 22:55:11 +00:00
2010-11-29 18:16:10 +00:00
2013-01-25 07:45:25 +00:00
2014-03-31 23:50:20 +00:00
2014-04-07 04:17:22 +00:00
2014-05-20 09:27:49 +00:00
2014-03-25 01:04:44 +00:00
2014-03-28 19:14:43 +00:00
2013-01-10 00:45:19 +00:00
2014-04-07 04:17:22 +00:00
2014-03-07 14:42:25 +00:00
2013-03-25 13:13:33 +00:00
2014-05-18 21:55:38 +00:00
2014-04-29 23:26:49 +00:00
2014-04-07 04:17:22 +00:00
2014-03-04 06:24:11 +00:00
2014-04-07 04:17:22 +00:00
2014-05-07 21:50:43 +00:00
2014-04-28 09:34:03 +00:00
2014-04-14 00:51:57 +00:00
2014-05-22 23:32:18 +00:00
2013-12-12 15:45:32 +00:00
2013-01-10 00:45:19 +00:00
2014-04-07 04:17:22 +00:00
2010-11-29 18:16:10 +00:00
2014-04-18 16:57:01 +00:00
2013-01-10 00:45:19 +00:00
2014-04-06 03:19:31 +00:00
2014-05-17 07:36:36 +00:00
2014-04-07 04:17:22 +00:00
2014-03-28 09:08:14 +00:00
2014-03-07 21:30:49 +00:00
2014-04-07 04:17:22 +00:00
2014-05-18 21:55:38 +00:00
2013-05-24 10:54:58 +00:00
2013-01-10 00:45:19 +00:00
2012-09-17 06:31:17 +00:00
2014-05-07 19:55:38 +00:00
2009-11-05 13:30:28 +00:00
2014-05-16 13:16:30 +00:00
2010-11-29 18:16:10 +00:00
2014-03-10 03:53:12 +00:00
2014-03-04 06:24:11 +00:00
2014-04-07 04:17:22 +00:00
2014-03-10 03:53:12 +00:00
2014-04-30 09:33:50 +00:00
2014-03-30 11:36:29 +00:00
2013-08-27 11:20:13 +00:00
2014-04-07 04:17:22 +00:00
2014-04-15 05:53:26 +00:00
2013-01-10 00:45:19 +00:00
2012-09-16 21:37:56 +00:00
2014-04-10 09:44:32 +00:00
2014-04-07 04:17:22 +00:00
2014-04-07 04:17:22 +00:00
2013-05-21 20:36:13 +00:00
2014-04-07 04:17:22 +00:00
2014-04-07 04:17:22 +00:00
2014-04-07 04:17:22 +00:00
2014-03-02 09:09:27 +00:00
2013-01-10 00:45:19 +00:00
2014-04-07 04:17:22 +00:00
2013-06-14 15:12:13 +00:00
2014-05-07 13:00:43 +00:00
2012-03-26 21:56:56 +00:00
2013-01-10 00:45:19 +00:00
2013-01-10 00:45:19 +00:00
2014-04-14 00:51:57 +00:00
2014-02-11 09:11:18 +00:00
2014-02-24 15:07:20 +00:00
2014-03-07 15:54:23 +00:00
2014-05-13 10:11:29 +00:00
2014-04-21 22:55:11 +00:00
2014-03-30 11:20:25 +00:00
2013-03-26 01:27:52 +00:00
2014-03-05 00:43:02 +00:00
2014-04-15 08:59:52 +00:00
2014-05-23 08:07:09 +00:00