Replace getOrCreateSectionData with registerSection.

There is now no SectionData to be created.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-05-26 15:07:25 +00:00
parent 9ec47b85c7
commit b14ebd6a1d
7 changed files with 18 additions and 28 deletions

View File

@ -211,8 +211,7 @@ bool MCObjectStreamer::changeSectionImpl(MCSection *Section,
assert(Section && "Cannot switch to a null section!");
flushPendingLabels(nullptr);
bool Created;
getAssembler().getOrCreateSectionData(*Section, &Created);
bool Created = getAssembler().registerSection(*Section);
CurSectionData = Section;
int64_t IntSubsection = 0;