aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCELFStreamer.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-05-25 23:48:22 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-05-25 23:48:22 +0000
commit8324c2f8bee4d6d78005dbabaafb27bc11645266 (patch)
tree1eb3657237f57a20d30287f566502744d3232948 /llvm/lib/MC/MCELFStreamer.cpp
parenta554c05d95dfe406de1613c78ab4eebf2c030adf (diff)
downloadllvm-8324c2f8bee4d6d78005dbabaafb27bc11645266.zip
llvm-8324c2f8bee4d6d78005dbabaafb27bc11645266.tar.gz
llvm-8324c2f8bee4d6d78005dbabaafb27bc11645266.tar.bz2
Store a MCSection in MCFragment.
Part of the work to merge MCSectionData into MCSection. llvm-svn: 238160
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCELFStreamer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp
index 23546cc..cad5d93 100644
--- a/llvm/lib/MC/MCELFStreamer.cpp
+++ b/llvm/lib/MC/MCELFStreamer.cpp
@@ -644,9 +644,10 @@ void MCELFStreamer::Flush() {
MCSection &Section = Symbol.getSection();
MCSectionData &SectData = getAssembler().getOrCreateSectionData(Section);
- new MCAlignFragment(ByteAlignment, 0, 1, ByteAlignment, &SectData);
+ new MCAlignFragment(ByteAlignment, 0, 1, ByteAlignment,
+ &SectData.getSection());
- MCFragment *F = new MCFillFragment(0, 0, Size, &SectData);
+ MCFragment *F = new MCFillFragment(0, 0, Size, &SectData.getSection());
Symbol.getData().setFragment(F);
// Update the maximum alignment of the section if necessary.