Pass a MCObjectStreamer instead of a MCStreamer when possible.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208569 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-05-12 14:40:12 +00:00
parent 6a139d7a29
commit 7624b86cfc

View File

@ -114,7 +114,7 @@ static inline const MCExpr *MakeStartMinusEndExpr(const MCStreamer &MCOS,
// in the LineSection. // in the LineSection.
// //
static inline void static inline void
EmitDwarfLineTable(MCStreamer *MCOS, const MCSection *Section, EmitDwarfLineTable(MCObjectStreamer *MCOS, const MCSection *Section,
const MCLineSection::MCLineEntryCollection &LineEntries) { const MCLineSection::MCLineEntryCollection &LineEntries) {
unsigned FileNum = 1; unsigned FileNum = 1;
unsigned LastLine = 1; unsigned LastLine = 1;
@ -923,20 +923,20 @@ namespace {
void EmitCompactUnwind(MCStreamer &streamer, void EmitCompactUnwind(MCStreamer &streamer,
const MCDwarfFrameInfo &frame); const MCDwarfFrameInfo &frame);
const MCSymbol &EmitCIE(MCStreamer &streamer, const MCSymbol &EmitCIE(MCObjectStreamer &streamer,
const MCSymbol *personality, const MCSymbol *personality,
unsigned personalityEncoding, unsigned personalityEncoding,
const MCSymbol *lsda, const MCSymbol *lsda,
bool IsSignalFrame, bool IsSignalFrame,
unsigned lsdaEncoding, unsigned lsdaEncoding,
bool IsSimple); bool IsSimple);
MCSymbol *EmitFDE(MCStreamer &streamer, MCSymbol *EmitFDE(MCObjectStreamer &streamer,
const MCSymbol &cieStart, const MCSymbol &cieStart,
const MCDwarfFrameInfo &frame); const MCDwarfFrameInfo &frame);
void EmitCFIInstructions(MCStreamer &streamer, void EmitCFIInstructions(MCObjectStreamer &streamer,
ArrayRef<MCCFIInstruction> Instrs, ArrayRef<MCCFIInstruction> Instrs,
MCSymbol *BaseLabel); MCSymbol *BaseLabel);
void EmitCFIInstruction(MCStreamer &Streamer, void EmitCFIInstruction(MCObjectStreamer &Streamer,
const MCCFIInstruction &Instr); const MCCFIInstruction &Instr);
}; };
@ -987,7 +987,7 @@ static void EmitEncodingByte(MCStreamer &Streamer, unsigned Encoding,
Streamer.EmitIntValue(Encoding, 1); Streamer.EmitIntValue(Encoding, 1);
} }
void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer, void FrameEmitterImpl::EmitCFIInstruction(MCObjectStreamer &Streamer,
const MCCFIInstruction &Instr) { const MCCFIInstruction &Instr) {
int dataAlignmentFactor = getDataAlignmentFactor(Streamer); int dataAlignmentFactor = getDataAlignmentFactor(Streamer);
bool VerboseAsm = Streamer.isVerboseAsm(); bool VerboseAsm = Streamer.isVerboseAsm();
@ -1139,7 +1139,7 @@ void FrameEmitterImpl::EmitCFIInstruction(MCStreamer &Streamer,
/// EmitFrameMoves - Emit frame instructions to describe the layout of the /// EmitFrameMoves - Emit frame instructions to describe the layout of the
/// frame. /// frame.
void FrameEmitterImpl::EmitCFIInstructions(MCStreamer &streamer, void FrameEmitterImpl::EmitCFIInstructions(MCObjectStreamer &streamer,
ArrayRef<MCCFIInstruction> Instrs, ArrayRef<MCCFIInstruction> Instrs,
MCSymbol *BaseLabel) { MCSymbol *BaseLabel) {
for (unsigned i = 0, N = Instrs.size(); i < N; ++i) { for (unsigned i = 0, N = Instrs.size(); i < N; ++i) {
@ -1234,7 +1234,7 @@ void FrameEmitterImpl::EmitCompactUnwind(MCStreamer &Streamer,
Streamer.EmitIntValue(0, Size); // No LSDA Streamer.EmitIntValue(0, Size); // No LSDA
} }
const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer, const MCSymbol &FrameEmitterImpl::EmitCIE(MCObjectStreamer &streamer,
const MCSymbol *personality, const MCSymbol *personality,
unsigned personalityEncoding, unsigned personalityEncoding,
const MCSymbol *lsda, const MCSymbol *lsda,
@ -1351,7 +1351,7 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(MCStreamer &streamer,
return *sectionStart; return *sectionStart;
} }
MCSymbol *FrameEmitterImpl::EmitFDE(MCStreamer &streamer, MCSymbol *FrameEmitterImpl::EmitFDE(MCObjectStreamer &streamer,
const MCSymbol &cieStart, const MCSymbol &cieStart,
const MCDwarfFrameInfo &frame) { const MCDwarfFrameInfo &frame) {
MCContext &context = streamer.getContext(); MCContext &context = streamer.getContext();