mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 00:32:23 +00:00
84a0dc323d
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 |
||
---|---|---|
.. | ||
ARM | ||
Inputs | ||
Mips | ||
X86 | ||
ar-create.test | ||
ar-error.test | ||
archive-delete.test | ||
archive-error-tmp.txt | ||
archive-extract-dir.test | ||
archive-format.test | ||
archive-long-index.test | ||
archive-move.test | ||
archive-replace-pos.test | ||
archive-symtab.test | ||
archive-toc.test | ||
archive-update.test | ||
check_binary_output.ll | ||
coff-archive-short.test | ||
coff-archive.test | ||
corrupt.test | ||
directory.ll | ||
elf-reloc-no-sym.test | ||
extract.ll | ||
lit.local.cfg | ||
mangle-ir.ll | ||
nm-archive.test | ||
nm-error.test | ||
nm-ir.ll | ||
nm-shared-object.test | ||
nm-trivial-object.test | ||
nm-universal-binary.test | ||
nm-weak-global-macho.test | ||
obj2yaml-coff-long-file-symbol.test | ||
obj2yaml-coff-weak-external.test | ||
obj2yaml.test | ||
objdump-file-header.test | ||
objdump-private-headers.test | ||
objdump-relocations.test | ||
objdump-section-content.test | ||
objdump-sectionheaders.test | ||
objdump-symbol-table.test | ||
readobj-elf-versioning.test | ||
readobj-shared-object.test | ||
readobj.test | ||
relocation-executable.test | ||
simple-archive.test | ||
size-trivial-macho.test | ||
yaml2obj-elf-bits-endian.test | ||
yaml2obj-elf-file-headers-with-e_flags.yaml | ||
yaml2obj-elf-file-headers.yaml | ||
yaml2obj-elf-rel.yaml | ||
yaml2obj-elf-section-basic.yaml | ||
yaml2obj-elf-section-invalid-size.yaml | ||
yaml2obj-elf-symbol-basic.yaml | ||
yaml2obj-elf-symbol-LocalGlobalWeak.yaml | ||
yaml2obj-readobj.test |