aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-11-01 16:27:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-11-01 16:27:31 +0000
commitf89671d994ba27e2816a7e49eb8bbc1b43d2a147 (patch)
tree29ca9734a11b3e76b9add2ffa89d5ff04845c1e8 /include/llvm
parent9729d2e9989f970724776c3e947cc7244ae45f90 (diff)
downloadexternal_llvm-f89671d994ba27e2816a7e49eb8bbc1b43d2a147.tar.gz
external_llvm-f89671d994ba27e2816a7e49eb8bbc1b43d2a147.tar.bz2
external_llvm-f89671d994ba27e2816a7e49eb8bbc1b43d2a147.zip
Move EmitInstruction to MCObjectStreamer so that ELF and MachO can share it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/MC/MCObjectStreamer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/MC/MCObjectStreamer.h b/include/llvm/MC/MCObjectStreamer.h
index 61f4d51f0d..3e8b7561e4 100644
--- a/include/llvm/MC/MCObjectStreamer.h
+++ b/include/llvm/MC/MCObjectStreamer.h
@@ -33,6 +33,9 @@ class MCObjectStreamer : public MCStreamer {
MCAssembler *Assembler;
MCSectionData *CurSectionData;
+ virtual void EmitInstToFragment(const MCInst &Inst) = 0;
+ virtual void EmitInstToData(const MCInst &Inst) = 0;
+
protected:
MCObjectStreamer(MCContext &Context, TargetAsmBackend &TAB,
raw_ostream &_OS, MCCodeEmitter *_Emitter,
@@ -59,6 +62,7 @@ public:
virtual void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol);
virtual void SwitchSection(const MCSection *Section);
+ virtual void EmitInstruction(const MCInst &Inst);
virtual void Finish();
/// @}