Store a MCSection in MCFragment.

Part of the work to merge MCSectionData into MCSection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238160 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-05-25 23:48:22 +00:00
parent e86bc46939
commit 68e7d22de4
7 changed files with 44 additions and 40 deletions

View File

@@ -43,7 +43,7 @@ void MCObjectStreamer::flushPendingLabels(MCFragment *F, uint64_t FOffset) {
if (!F) {
F = new MCDataFragment();
CurSectionData->getFragmentList().insert(CurInsertionPoint, F);
F->setParent(CurSectionData);
F->setParent(&CurSectionData->getSection());
}
for (MCSymbolData *SD : PendingLabels) {
SD->setFragment(F);