OLD | NEW |
1 //===- lib/MC/MCStreamer.cpp - Streaming Machine Code Output --------------===// | 1 //===- lib/MC/MCStreamer.cpp - Streaming Machine Code Output --------------===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 | 9 |
10 #include "llvm/MC/MCStreamer.h" | 10 #include "llvm/MC/MCStreamer.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 } | 28 } |
29 | 29 |
30 MCStreamer::~MCStreamer() { | 30 MCStreamer::~MCStreamer() { |
31 for (unsigned i = 0; i < getNumW64UnwindInfos(); ++i) | 31 for (unsigned i = 0; i < getNumW64UnwindInfos(); ++i) |
32 delete W64UnwindInfos[i]; | 32 delete W64UnwindInfos[i]; |
33 } | 33 } |
34 | 34 |
35 void MCStreamer::reset() { | 35 void MCStreamer::reset() { |
36 for (unsigned i = 0; i < getNumW64UnwindInfos(); ++i) | 36 for (unsigned i = 0; i < getNumW64UnwindInfos(); ++i) |
37 delete W64UnwindInfos[i]; | 37 delete W64UnwindInfos[i]; |
38 W64UnwindInfos.clear(); | |
39 EmitEHFrame = true; | 38 EmitEHFrame = true; |
40 EmitDebugFrame = false; | 39 EmitDebugFrame = false; |
41 CurrentW64UnwindInfo = 0; | 40 CurrentW64UnwindInfo = 0; |
42 LastSymbol = 0; | 41 LastSymbol = 0; |
43 SectionStack.clear(); | 42 SectionStack.clear(); |
44 SectionStack.push_back(std::pair<MCSectionSubPair, MCSectionSubPair>()); | 43 SectionStack.push_back(std::pair<MCSectionSubPair, MCSectionSubPair>()); |
45 } | 44 } |
46 | 45 |
47 const MCExpr *MCStreamer::BuildSymbolDiff(MCContext &Context, | 46 const MCExpr *MCStreamer::BuildSymbolDiff(MCContext &Context, |
48 const MCSymbol *A, | 47 const MCSymbol *A, |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 if (!FrameInfos.empty() && !FrameInfos.back().End) | 616 if (!FrameInfos.empty() && !FrameInfos.back().End) |
618 report_fatal_error("Unfinished frame!"); | 617 report_fatal_error("Unfinished frame!"); |
619 | 618 |
620 FinishImpl(); | 619 FinishImpl(); |
621 } | 620 } |
622 | 621 |
623 MCSymbolData &MCStreamer::getOrCreateSymbolData(MCSymbol *Symbol) { | 622 MCSymbolData &MCStreamer::getOrCreateSymbolData(MCSymbol *Symbol) { |
624 report_fatal_error("Not supported!"); | 623 report_fatal_error("Not supported!"); |
625 return *(static_cast<MCSymbolData*>(0)); | 624 return *(static_cast<MCSymbolData*>(0)); |
626 } | 625 } |
OLD | NEW |