diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-26 15:07:25 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-26 15:07:25 +0000 |
| commit | bb9a71c1ed9817c0ab20bad0ba5889f7e4543d83 (patch) | |
| tree | dca043aed2a397f15c30147e6c6d6d071288f87e /llvm/lib/MC/MCObjectStreamer.cpp | |
| parent | 3ac2b08cbdcec07c00e6f343b586c9390bc61846 (diff) | |
| download | bcm5719-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.cpp | 3 |
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; |

