mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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:
@ -637,11 +637,10 @@ void MCELFStreamer::Flush() {
|
||||
unsigned ByteAlignment = i->ByteAlignment;
|
||||
MCSection &Section = Symbol.getSection();
|
||||
|
||||
MCSectionData &SectData = getAssembler().getOrCreateSectionData(Section);
|
||||
new MCAlignFragment(ByteAlignment, 0, 1, ByteAlignment,
|
||||
&SectData.getSection());
|
||||
getAssembler().registerSection(Section);
|
||||
new MCAlignFragment(ByteAlignment, 0, 1, ByteAlignment, &Section);
|
||||
|
||||
MCFragment *F = new MCFillFragment(0, 0, Size, &SectData.getSection());
|
||||
MCFragment *F = new MCFillFragment(0, 0, Size, &Section);
|
||||
Symbol.getData().setFragment(F);
|
||||
|
||||
// Update the maximum alignment of the section if necessary.
|
||||
|
Reference in New Issue
Block a user