[Core] Fix handling of Section Groups.
authorShankar Easwaran <shankare@codeaurora.org>
Sun, 22 Feb 2015 23:40:58 +0000 (23:40 +0000)
committerShankar Easwaran <shankare@codeaurora.org>
Sun, 22 Feb 2015 23:40:58 +0000 (23:40 +0000)
commite44fc87cde0a754c041dace8d9b5d5b6e7aa7c45
tree81b914efd1fdc79a0061d69e17b19fb31312e2c6
parent45b392d6cf0e9a7d7401161500d1bce0f05144ae
[Core] Fix handling of Section Groups.

There is code(added by me) in the YAMLReader which isn't correct when it handles references
for section groups. The test case was also checking for wrong outputs.

This fixes the bug and the testcase so that they check for proper outputs.

llvm-svn: 230190
lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
lld/test/core/gnulinkonce-resolve.objtxt
lld/test/core/gnulinkonce-simple.objtxt
lld/test/core/sectiongroup-deadstrip.objtxt
lld/test/core/sectiongroup-resolve.objtxt
lld/test/core/sectiongroup-simple.objtxt