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

@@ -74,7 +74,7 @@ protected:
void insert(MCFragment *F) {
flushPendingLabels(F);
CurSectionData->getFragmentList().insert(CurInsertionPoint, F);
F->setParent(CurSectionData);
F->setParent(&CurSectionData->getSection());
}
/// Get a data fragment to write into, creating a new one if the current