1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/lib
Chris Bieneman f9c29b59f6 [YAML] Fix YAML tags appearing before the start of sequence elements
Our existing yaml::Output code writes tags immediately when mapTag is called, without any state handling. This results in tags on sequence elements being written before the element itself. For example, we see this:

SomeArray:     !elem_type
  - key1:         1
    key2:         2 !elem_type2
  - key3:         3
    key4:         4

We should instead see:

SomeArray:
  - !elem_type
    key1:         1
    key2:         2
  - !elem_type2
    key3:         3
    key4:         4

Our reader handles reading properly, so this bug only impacts writing yaml sequences with tagged elements.

As a test for this I've modified the Mach-O yaml encoding to allways apply the !mach-o tag when encoding MachOYAML::Object entries. This results in the !mach-o tag appearing as expected in dumped fat files.

llvm-svn: 274067
2016-06-28 21:10:26 +00:00
..
Analysis Typos. NFC. 2016-06-28 17:19:10 +00:00
AsmParser Remangle intrinsics names when types are renamed 2016-06-24 15:10:29 +00:00
Bitcode Remangle intrinsics names when types are renamed 2016-06-24 15:10:29 +00:00
CodeGen Use isPositionIndependent in a few more places. 2016-06-28 20:13:36 +00:00
DebugInfo [CodeView] Healthy paranoia around strings 2016-06-24 19:34:41 +00:00
ExecutionEngine Fix lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp for r273701 2016-06-24 22:38:30 +00:00
Fuzzer [libfuzzer] moving is_ascii handler inside mutation dispatcher. 2016-06-23 20:44:48 +00:00
IR Support arbitrary addrspace pointers in masked load/store intrinsics 2016-06-28 18:27:25 +00:00
IRReader
LibDriver
LineEditor
Linker IR: New representation for CFI and virtual call optimization pass metadata. 2016-06-24 21:21:32 +00:00
LTO [UpdateCompilerUsed] API rename and cleanup, suggested by Rafaael. 2016-06-22 19:50:42 +00:00
MC [ARM] Fix Thumb text sections' flags under COFF/Windows 2016-06-27 14:42:20 +00:00
Object Change all but the last ErrorOr<...> use for MachOUniversalBinary to Expected<...> to 2016-06-27 21:39:39 +00:00
ObjectYAML [YAML] Fix YAML tags appearing before the start of sequence elements 2016-06-28 21:10:26 +00:00
Option
Passes [PM] Improve the debugging and logging facilities of the CGSCC bits of 2016-06-27 23:26:08 +00:00
ProfileData [Coverage] Clarify ownership of a MemoryBuffer in the reader (NFC) 2016-06-21 22:22:33 +00:00
Support [YAML] Fix YAML tags appearing before the start of sequence elements 2016-06-28 21:10:26 +00:00
TableGen Avoid copies of std::strings and APInt/APFloats where we only read from it 2016-06-08 10:01:20 +00:00
Target [SystemZ] Use NILL instruction instead of NILF where possible 2016-06-28 21:03:19 +00:00
Transforms [LLE] Don't hoist conditionally executed loads 2016-06-28 04:02:47 +00:00
CMakeLists.txt
LLVMBuild.txt