Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 1 | //===-- llvm/MC/WinCOFFStreamer.cpp -----------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 10 | // This file contains an implementation of a Windows COFF object file streamer. |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | |
Chandler Carruth | ed0881b | 2012-12-03 16:50:05 +0000 | [diff] [blame] | 14 | #include "llvm/MC/MCStreamer.h" |
Evan Cheng | 5928e69 | 2011-07-25 23:24:55 +0000 | [diff] [blame] | 15 | #include "llvm/MC/MCAsmBackend.h" |
Chandler Carruth | ed0881b | 2012-12-03 16:50:05 +0000 | [diff] [blame] | 16 | #include "llvm/MC/MCAsmLayout.h" |
| 17 | #include "llvm/MC/MCAssembler.h" |
| 18 | #include "llvm/MC/MCCodeEmitter.h" |
| 19 | #include "llvm/MC/MCContext.h" |
| 20 | #include "llvm/MC/MCExpr.h" |
Rafael Espindola | e308c0c | 2014-01-23 22:49:25 +0000 | [diff] [blame] | 21 | #include "llvm/MC/MCObjectFileInfo.h" |
Chandler Carruth | ed0881b | 2012-12-03 16:50:05 +0000 | [diff] [blame] | 22 | #include "llvm/MC/MCObjectStreamer.h" |
| 23 | #include "llvm/MC/MCSection.h" |
| 24 | #include "llvm/MC/MCSectionCOFF.h" |
| 25 | #include "llvm/MC/MCSymbol.h" |
| 26 | #include "llvm/MC/MCValue.h" |
| 27 | #include "llvm/MC/MCWin64EH.h" |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 28 | #include "llvm/MC/MCWinCOFFStreamer.h" |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 29 | #include "llvm/Support/COFF.h" |
| 30 | #include "llvm/Support/Debug.h" |
| 31 | #include "llvm/Support/ErrorHandling.h" |
Evan Cheng | 2bb4035 | 2011-08-24 18:08:43 +0000 | [diff] [blame] | 32 | #include "llvm/Support/TargetRegistry.h" |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 33 | #include "llvm/Support/raw_ostream.h" |
Rafael Espindola | d3df3d3 | 2011-12-17 01:14:52 +0000 | [diff] [blame] | 34 | |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 35 | using namespace llvm; |
| 36 | |
Chandler Carruth | f58e376 | 2014-04-22 03:04:17 +0000 | [diff] [blame] | 37 | #define DEBUG_TYPE "WinCOFFStreamer" |
| 38 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 39 | namespace llvm { |
| 40 | MCWinCOFFStreamer::MCWinCOFFStreamer(MCContext &Context, MCAsmBackend &MAB, |
| 41 | MCCodeEmitter &CE, raw_ostream &OS) |
Craig Topper | bb694de | 2014-04-13 04:57:38 +0000 | [diff] [blame] | 42 | : MCObjectStreamer(Context, MAB, OS, &CE), CurSymbol(nullptr) {} |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 43 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 44 | void MCWinCOFFStreamer::EmitInstToData(const MCInst &Inst, |
| 45 | const MCSubtargetInfo &STI) { |
| 46 | MCDataFragment *DF = getOrCreateDataFragment(); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 47 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 48 | SmallVector<MCFixup, 4> Fixups; |
| 49 | SmallString<256> Code; |
| 50 | raw_svector_ostream VecOS(Code); |
| 51 | getAssembler().getEmitter().EncodeInstruction(Inst, VecOS, Fixups, STI); |
| 52 | VecOS.flush(); |
| 53 | |
| 54 | // Add the fixups and data. |
| 55 | for (unsigned i = 0, e = Fixups.size(); i != e; ++i) { |
| 56 | Fixups[i].setOffset(Fixups[i].getOffset() + DF->getContents().size()); |
| 57 | DF->getFixups().push_back(Fixups[i]); |
| 58 | } |
| 59 | |
| 60 | DF->getContents().append(Code.begin(), Code.end()); |
| 61 | } |
| 62 | |
| 63 | void MCWinCOFFStreamer::InitSections() { |
Rafael Espindola | f281253 | 2014-01-24 02:28:11 +0000 | [diff] [blame] | 64 | // FIXME: this is identical to the ELF one. |
| 65 | // This emulates the same behavior of GNU as. This makes it easier |
| 66 | // to compare the output as the major sections are in the same order. |
| 67 | SwitchSection(getContext().getObjectFileInfo()->getTextSection()); |
Rafael Espindola | 7b51496 | 2014-02-04 18:34:04 +0000 | [diff] [blame] | 68 | EmitCodeAlignment(4); |
Rafael Espindola | f281253 | 2014-01-24 02:28:11 +0000 | [diff] [blame] | 69 | |
| 70 | SwitchSection(getContext().getObjectFileInfo()->getDataSection()); |
Rafael Espindola | 7b51496 | 2014-02-04 18:34:04 +0000 | [diff] [blame] | 71 | EmitCodeAlignment(4); |
Rafael Espindola | f281253 | 2014-01-24 02:28:11 +0000 | [diff] [blame] | 72 | |
| 73 | SwitchSection(getContext().getObjectFileInfo()->getBSSSection()); |
Rafael Espindola | 7b51496 | 2014-02-04 18:34:04 +0000 | [diff] [blame] | 74 | EmitCodeAlignment(4); |
Rafael Espindola | f281253 | 2014-01-24 02:28:11 +0000 | [diff] [blame] | 75 | |
| 76 | SwitchSection(getContext().getObjectFileInfo()->getTextSection()); |
Rafael Espindola | f667d92 | 2010-09-15 21:48:40 +0000 | [diff] [blame] | 77 | } |
| 78 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 79 | void MCWinCOFFStreamer::EmitLabel(MCSymbol *Symbol) { |
Rafael Espindola | 1679580 | 2010-11-28 16:22:59 +0000 | [diff] [blame] | 80 | assert(Symbol->isUndefined() && "Cannot define a symbol twice!"); |
Rafael Espindola | e5b7415 | 2010-11-28 17:18:55 +0000 | [diff] [blame] | 81 | MCObjectStreamer::EmitLabel(Symbol); |
Rafael Espindola | 1679580 | 2010-11-28 16:22:59 +0000 | [diff] [blame] | 82 | } |
| 83 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 84 | void MCWinCOFFStreamer::EmitDebugLabel(MCSymbol *Symbol) { |
Reed Kotler | aee4d5d1 | 2012-12-16 04:00:45 +0000 | [diff] [blame] | 85 | EmitLabel(Symbol); |
| 86 | } |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 87 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 88 | void MCWinCOFFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) { |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 89 | llvm_unreachable("not implemented"); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 90 | } |
| 91 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 92 | void MCWinCOFFStreamer::EmitThumbFunc(MCSymbol *Func) { |
Jim Grosbach | 5a2c68d | 2010-11-05 22:08:08 +0000 | [diff] [blame] | 93 | llvm_unreachable("not implemented"); |
| 94 | } |
| 95 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 96 | bool MCWinCOFFStreamer::EmitSymbolAttribute(MCSymbol *Symbol, |
| 97 | MCSymbolAttr Attribute) { |
Michael J. Spencer | be52c62 | 2010-10-09 11:00:37 +0000 | [diff] [blame] | 98 | assert(Symbol && "Symbol must be non-null!"); |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 99 | assert((!Symbol->isInSection() || |
| 100 | Symbol->getSection().getVariant() == MCSection::SV_COFF) && |
| 101 | "Got non-COFF section in the COFF backend!"); |
| 102 | |
| 103 | MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Symbol); |
| 104 | |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 105 | switch (Attribute) { |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 106 | default: return false; |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 107 | case MCSA_WeakReference: |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 108 | case MCSA_Weak: |
| 109 | SD.modifyFlags(COFF::SF_WeakExternal, COFF::SF_WeakExternal); |
| 110 | SD.setExternal(true); |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 111 | break; |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 112 | case MCSA_Global: |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 113 | SD.setExternal(true); |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 114 | break; |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 115 | } |
Saleem Abdulrasool | 4208b61 | 2013-08-09 01:52:03 +0000 | [diff] [blame] | 116 | |
| 117 | return true; |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 118 | } |
| 119 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 120 | void MCWinCOFFStreamer::EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) { |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 121 | llvm_unreachable("not implemented"); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 122 | } |
| 123 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 124 | void MCWinCOFFStreamer::BeginCOFFSymbolDef(MCSymbol const *Symbol) { |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 125 | assert((!Symbol->isInSection() || |
| 126 | Symbol->getSection().getVariant() == MCSection::SV_COFF) && |
| 127 | "Got non-COFF section in the COFF backend!"); |
| 128 | assert(!CurSymbol && "starting new symbol definition in a symbol definition"); |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 129 | CurSymbol = Symbol; |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 130 | } |
| 131 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 132 | void MCWinCOFFStreamer::EmitCOFFSymbolStorageClass(int StorageClass) { |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 133 | assert(CurSymbol && "StorageClass specified outside of symbol definition"); |
| 134 | assert((StorageClass & ~0xFF) == 0 && |
| 135 | "StorageClass must only have data in the first byte!"); |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 136 | |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 137 | MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*CurSymbol); |
| 138 | SD.modifyFlags(StorageClass << COFF::SF_ClassShift, COFF::SF_ClassMask); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 139 | } |
| 140 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 141 | void MCWinCOFFStreamer::EmitCOFFSymbolType(int Type) { |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 142 | assert(CurSymbol && "SymbolType specified outside of a symbol definition"); |
| 143 | assert((Type & ~0xFFFF) == 0 && |
| 144 | "Type must only have data in the first 2 bytes"); |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 145 | |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 146 | MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*CurSymbol); |
| 147 | SD.modifyFlags(Type << COFF::SF_TypeShift, COFF::SF_TypeMask); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 148 | } |
| 149 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 150 | void MCWinCOFFStreamer::EndCOFFSymbolDef() { |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 151 | assert(CurSymbol && "ending symbol definition without beginning one"); |
Craig Topper | bb694de | 2014-04-13 04:57:38 +0000 | [diff] [blame] | 152 | CurSymbol = nullptr; |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 153 | } |
| 154 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 155 | void MCWinCOFFStreamer::EmitCOFFSectionIndex(MCSymbol const *Symbol) { |
Timur Iskhodzhanov | c1fb2d6 | 2013-12-20 18:15:00 +0000 | [diff] [blame] | 156 | MCDataFragment *DF = getOrCreateDataFragment(); |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 157 | const MCSymbolRefExpr *SRE = MCSymbolRefExpr::Create(Symbol, getContext()); |
| 158 | MCFixup Fixup = MCFixup::Create(DF->getContents().size(), SRE, FK_SecRel_2); |
| 159 | DF->getFixups().push_back(Fixup); |
Timur Iskhodzhanov | c1fb2d6 | 2013-12-20 18:15:00 +0000 | [diff] [blame] | 160 | DF->getContents().resize(DF->getContents().size() + 4, 0); |
| 161 | } |
| 162 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 163 | void MCWinCOFFStreamer::EmitCOFFSecRel32(MCSymbol const *Symbol) { |
Rafael Espindola | d3df3d3 | 2011-12-17 01:14:52 +0000 | [diff] [blame] | 164 | MCDataFragment *DF = getOrCreateDataFragment(); |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 165 | const MCSymbolRefExpr *SRE = MCSymbolRefExpr::Create(Symbol, getContext()); |
| 166 | MCFixup Fixup = MCFixup::Create(DF->getContents().size(), SRE, FK_SecRel_4); |
| 167 | DF->getFixups().push_back(Fixup); |
Rafael Espindola | d3df3d3 | 2011-12-17 01:14:52 +0000 | [diff] [blame] | 168 | DF->getContents().resize(DF->getContents().size() + 4, 0); |
| 169 | } |
| 170 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 171 | void MCWinCOFFStreamer::EmitELFSize(MCSymbol *Symbol, const MCExpr *Value) { |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 172 | llvm_unreachable("not supported"); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 173 | } |
| 174 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 175 | void MCWinCOFFStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, |
| 176 | unsigned ByteAlignment) { |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 177 | assert((!Symbol->isInSection() || |
| 178 | Symbol->getSection().getVariant() == MCSection::SV_COFF) && |
| 179 | "Got non-COFF section in the COFF backend!"); |
David Majnemer | a9bdb32 | 2014-04-08 22:33:40 +0000 | [diff] [blame] | 180 | |
| 181 | if (ByteAlignment > 32) |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 182 | report_fatal_error("alignment is limited to 32-bytes"); |
David Majnemer | a9bdb32 | 2014-04-08 22:33:40 +0000 | [diff] [blame] | 183 | |
Craig Topper | bb694de | 2014-04-13 04:57:38 +0000 | [diff] [blame] | 184 | AssignSection(Symbol, nullptr); |
David Majnemer | a9bdb32 | 2014-04-08 22:33:40 +0000 | [diff] [blame] | 185 | |
| 186 | MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Symbol); |
| 187 | SD.setExternal(true); |
| 188 | SD.setCommon(Size, ByteAlignment); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 189 | } |
| 190 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 191 | void MCWinCOFFStreamer::EmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size, |
| 192 | unsigned ByteAlignment) { |
David Majnemer | a9bdb32 | 2014-04-08 22:33:40 +0000 | [diff] [blame] | 193 | assert(!Symbol->isInSection() && "Symbol must not already have a section!"); |
| 194 | |
| 195 | const MCSection *Section = getContext().getObjectFileInfo()->getBSSSection(); |
| 196 | MCSectionData &SectionData = getAssembler().getOrCreateSectionData(*Section); |
| 197 | if (SectionData.getAlignment() < ByteAlignment) |
| 198 | SectionData.setAlignment(ByteAlignment); |
| 199 | |
| 200 | MCSymbolData &SD = getAssembler().getOrCreateSymbolData(*Symbol); |
| 201 | SD.setExternal(false); |
| 202 | |
| 203 | AssignSection(Symbol, Section); |
| 204 | |
| 205 | if (ByteAlignment != 1) |
| 206 | new MCAlignFragment(ByteAlignment, /*_Value=*/0, /*_ValueSize=*/0, |
| 207 | ByteAlignment, &SectionData); |
| 208 | |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 209 | MCFillFragment *Fragment = |
| 210 | new MCFillFragment(/*_Value=*/0, /*_ValueSize=*/0, Size, &SectionData); |
| 211 | SD.setFragment(Fragment); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 212 | } |
| 213 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 214 | void MCWinCOFFStreamer::EmitZerofill(const MCSection *Section, |
| 215 | MCSymbol *Symbol, uint64_t Size, |
| 216 | unsigned ByteAlignment) { |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 217 | llvm_unreachable("not implemented"); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 218 | } |
| 219 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 220 | void MCWinCOFFStreamer::EmitTBSSSymbol(const MCSection *Section, |
| 221 | MCSymbol *Symbol, uint64_t Size, |
| 222 | unsigned ByteAlignment) { |
Michael J. Spencer | e2da0a4 | 2010-07-19 06:13:10 +0000 | [diff] [blame] | 223 | llvm_unreachable("not implemented"); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 224 | } |
| 225 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 226 | void MCWinCOFFStreamer::EmitFileDirective(StringRef Filename) { |
Saleem Abdulrasool | a2bf05a | 2014-04-16 04:15:32 +0000 | [diff] [blame] | 227 | getAssembler().addFileName(Filename); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 228 | } |
| 229 | |
Rafael Espindola | 5645bad | 2013-10-16 01:05:45 +0000 | [diff] [blame] | 230 | // TODO: Implement this if you want to emit .comment section in COFF obj files. |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 231 | void MCWinCOFFStreamer::EmitIdent(StringRef IdentString) { |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 232 | llvm_unreachable("not implemented"); |
Rafael Espindola | 5645bad | 2013-10-16 01:05:45 +0000 | [diff] [blame] | 233 | } |
| 234 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 235 | void MCWinCOFFStreamer::EmitWin64EHHandlerData() { |
Saleem Abdulrasool | a8b1f72 | 2014-04-27 03:48:12 +0000 | [diff] [blame] | 236 | llvm_unreachable("not implemented"); |
Charles Davis | 1c8bd5a | 2011-05-22 03:01:05 +0000 | [diff] [blame] | 237 | } |
| 238 | |
Saleem Abdulrasool | cf1a29f | 2014-04-27 03:48:05 +0000 | [diff] [blame] | 239 | void MCWinCOFFStreamer::FinishImpl() { |
Rafael Espindola | 0708209 | 2012-01-07 03:13:18 +0000 | [diff] [blame] | 240 | MCObjectStreamer::FinishImpl(); |
Chris Lattner | 56725be | 2010-07-11 22:05:00 +0000 | [diff] [blame] | 241 | } |
Saleem Abdulrasool | 8e4fee0 | 2014-04-27 03:48:01 +0000 | [diff] [blame] | 242 | } |
| 243 | |