summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-05-26 15:07:25 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-05-26 15:07:25 +0000
commitbb9a71c1ed9817c0ab20bad0ba5889f7e4543d83 (patch)
treedca043aed2a397f15c30147e6c6d6d071288f87e /llvm/lib/MC/MCObjectStreamer.cpp
parent3ac2b08cbdcec07c00e6f343b586c9390bc61846 (diff)
downloadbcm5719-llvm-bb9a71c1ed9817c0ab20bad0ba5889f7e4543d83.tar.gz
bcm5719-llvm-bb9a71c1ed9817c0ab20bad0ba5889f7e4543d83.zip
Replace getOrCreateSectionData with registerSection.
There is now no SectionData to be created. llvm-svn: 238208
Diffstat (limited to 'llvm/lib/MC/MCObjectStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCObjectStreamer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCObjectStreamer.cpp b/llvm/lib/MC/MCObjectStreamer.cpp
index f5a282d603c..c1b20717db3 100644
--- a/llvm/lib/MC/MCObjectStreamer.cpp
+++ b/llvm/lib/MC/MCObjectStreamer.cpp
@@ -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;
OpenPOWER on IntegriCloud