[PATCH] D141848: [Test] Fix YAML mapping keys duplication. NFC.

Anton Sidorenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 06:45:19 PST 2023


asi-sc created this revision.
Herald added subscribers: ayermolo, cishida, pengfei, nemanjai, emaste.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a reviewer: jhenderson.
Herald added a reviewer: rafauler.
Herald added a reviewer: Amir.
Herald added a reviewer: maksfb.
Herald added a reviewer: ributzka.
Herald added a project: All.
asi-sc requested review of this revision.
Herald added subscribers: llvm-commits, yota9, MaskRay.
Herald added a project: LLVM.

YAML specification does not allow keys duplication an a mapping. However, YAML
parser in LLVM does not have any check on that and uses only the last key entry.
In this change duplicated keys are merged to satisfy the spec.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D141848

Files:
  bolt/test/AArch64/Inputs/plt-gnu-ld.yaml
  llvm/test/CodeGen/AArch64/GlobalISel/select-int-ext.mir
  llvm/test/CodeGen/ARM/machine-sink-multidef.mir
  llvm/test/CodeGen/PowerPC/jump-tables-collapse-rotate-remove-SrcMI.mir
  llvm/test/CodeGen/PowerPC/mi-peephole.mir
  llvm/test/CodeGen/X86/fixup-bw-inst.mir
  llvm/test/tools/llvm-objcopy/COFF/redefine-symbol.test
  llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
  llvm/test/tools/llvm-reduce/mir/preserve-func-info.mir
  llvm/unittests/Support/YAMLIOTest.cpp
  llvm/unittests/TextAPI/TextStubV4Tests.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141848.489540.patch
Type: text/x-patch
Size: 7507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230116/77319a3d/attachment.bin>


More information about the llvm-commits mailing list