Have getCurrentSectionData return a MCSection.

I will fix the name shortly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238204 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-05-26 14:48:11 +00:00
parent da68b18db5
commit 7ff8c5c348
4 changed files with 19 additions and 26 deletions

View File

@@ -36,7 +36,7 @@ class raw_pwrite_stream;
/// implementation.
class MCObjectStreamer : public MCStreamer {
MCAssembler *Assembler;
MCSectionData *CurSectionData;
MCSection *CurSectionData;
MCSectionData::iterator CurInsertionPoint;
bool EmitEHFrame;
bool EmitDebugFrame;
@@ -65,16 +65,14 @@ public:
void EmitCFISections(bool EH, bool Debug) override;
protected:
MCSectionData *getCurrentSectionData() const {
return CurSectionData;
}
MCSection *getCurrentSectionData() const { return CurSectionData; }
MCFragment *getCurrentFragment() const;
void insert(MCFragment *F) {
flushPendingLabels(F);
CurSectionData->getFragmentList().insert(CurInsertionPoint, F);
F->setParent(&CurSectionData->getSection());
F->setParent(CurSectionData);
}
/// Get a data fragment to write into, creating a new one if the current