diff options
author | Jan Sjödin <jan_sjodin@yahoo.com> | 2011-03-09 17:33:05 +0000 |
---|---|---|
committer | Jan Sjödin <jan_sjodin@yahoo.com> | 2011-03-09 17:33:05 +0000 |
commit | 01dff9646173fea0c38df4471f41272557ca831a (patch) | |
tree | 76a9fa9fff6898db234dabbcac806ef6c42262df /lib/MC | |
parent | e62289b98f591bca3fd9073213b00a757d4cf857 (diff) |
Add constructors to MCElfStreamer and MCObjectStreamer to take an extra MCAssembler * argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCELFStreamer.h | 6 | ||||
-rw-r--r-- | lib/MC/MCObjectStreamer.cpp | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/MC/MCELFStreamer.h b/lib/MC/MCELFStreamer.h index 091101dceb..db34d58ec6 100644 --- a/lib/MC/MCELFStreamer.h +++ b/lib/MC/MCELFStreamer.h @@ -29,6 +29,12 @@ public: raw_ostream &OS, MCCodeEmitter *Emitter) : MCObjectStreamer(Context, TAB, OS, Emitter) {} + MCELFStreamer(MCContext &Context, TargetAsmBackend &TAB, + raw_ostream &OS, MCCodeEmitter *Emitter, + MCAssembler *Assembler) + : MCObjectStreamer(Context, TAB, OS, Emitter, Assembler) {} + + ~MCELFStreamer() {} /// @name MCStreamer Interface diff --git a/lib/MC/MCObjectStreamer.cpp b/lib/MC/MCObjectStreamer.cpp index e67d9b03a9..ef22eaaaa4 100644 --- a/lib/MC/MCObjectStreamer.cpp +++ b/lib/MC/MCObjectStreamer.cpp @@ -31,6 +31,13 @@ MCObjectStreamer::MCObjectStreamer(MCContext &Context, TargetAsmBackend &TAB, { } +MCObjectStreamer::MCObjectStreamer(MCContext &Context, TargetAsmBackend &TAB, + raw_ostream &OS, MCCodeEmitter *Emitter_, + MCAssembler *_Assembler) + : MCStreamer(Context), Assembler(_Assembler), CurSectionData(0) +{ +} + MCObjectStreamer::~MCObjectStreamer() { delete &Assembler->getBackend(); delete &Assembler->getEmitter(); |