diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-27 03:48:12 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-04-27 03:48:12 +0000 |
commit | a8b1f7204b7c01616ebb444b719a6411e9648442 (patch) | |
tree | 31cfb8acb9d420d71e08fb284ba4ea17ac556ada /llvm/lib/MC/WinCOFFStreamer.cpp | |
parent | cf1a29ffeed7a4e6834d7c7bf5190a7bc60e3abe (diff) | |
download | bcm5719-llvm-a8b1f7204b7c01616ebb444b719a6411e9648442.tar.gz bcm5719-llvm-a8b1f7204b7c01616ebb444b719a6411e9648442.zip |
MC: create X86WinCOFFStreamer for target specific behaviour
This introduces a target specific streamer, X86WinCOFFStreamer, which handles
the target specific behaviour (e.g. WinEH). This is mostly to ensure that
differences between ARM and X86 remain disjoint and do not accidentally cross
boundaries. This is the final staging change for enabling object emission for
Windows on ARM.
llvm-svn: 207344
Diffstat (limited to 'llvm/lib/MC/WinCOFFStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/WinCOFFStreamer.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/llvm/lib/MC/WinCOFFStreamer.cpp b/llvm/lib/MC/WinCOFFStreamer.cpp index 2d8ca7eb371..ec81dff0c34 100644 --- a/llvm/lib/MC/WinCOFFStreamer.cpp +++ b/llvm/lib/MC/WinCOFFStreamer.cpp @@ -233,29 +233,15 @@ void MCWinCOFFStreamer::EmitIdent(StringRef IdentString) { } void MCWinCOFFStreamer::EmitWin64EHHandlerData() { - MCStreamer::EmitWin64EHHandlerData(); - - // We have to emit the unwind info now, because this directive - // actually switches to the .xdata section! - MCWin64EHUnwindEmitter::EmitUnwindInfo(*this, getCurrentW64UnwindInfo()); + llvm_unreachable("not implemented"); } void MCWinCOFFStreamer::FinishImpl() { - EmitFrames(nullptr, true); - EmitW64Tables(); MCObjectStreamer::FinishImpl(); } MCSymbolData &MCWinCOFFStreamer::getOrCreateSymbolData(const MCSymbol *Symbol) { return getAssembler().getOrCreateSymbolData(*Symbol); } - -MCStreamer *createWinCOFFStreamer(MCContext &Context, MCAsmBackend &MAB, - MCCodeEmitter &CE, raw_ostream &OS, - bool RelaxAll) { - MCWinCOFFStreamer *S = new MCWinCOFFStreamer(Context, MAB, CE, OS); - S->getAssembler().setRelaxAll(RelaxAll); - return S; -} } |