llvm.org GIT mirror llvm / e8cfbd8
Remove unused argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129955 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 9 years ago
9 changed file(s) with 32 addition(s) and 44 deletion(s). Raw diff Collapse all Expand all
6363 virtual void EmitLabel(MCSymbol *Symbol);
6464 virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
6565 bool isPCRel, unsigned AddrSpace);
66 virtual void EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
67 virtual void EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
66 virtual void EmitULEB128Value(const MCExpr *Value);
67 virtual void EmitSLEB128Value(const MCExpr *Value);
6868 virtual void EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol);
6969 virtual void ChangeSection(const MCSection *Section);
7070 virtual void EmitInstruction(const MCInst &Inst);
318318 void EmitAbsValue(const MCExpr *Value, unsigned Size,
319319 unsigned AddrSpace = 0);
320320
321 virtual void EmitULEB128Value(const MCExpr *Value,
322 unsigned AddrSpace = 0) = 0;
323
324 virtual void EmitSLEB128Value(const MCExpr *Value,
325 unsigned AddrSpace = 0) = 0;
321 virtual void EmitULEB128Value(const MCExpr *Value) = 0;
322
323 virtual void EmitSLEB128Value(const MCExpr *Value) = 0;
326324
327325 /// EmitULEB128Value - Special case of EmitULEB128Value that avoids the
328326 /// client having to pass in a MCExpr for constant integers.
157157 virtual void EmitIntValue(uint64_t Value, unsigned Size,
158158 unsigned AddrSpace = 0);
159159
160 virtual void EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
161
162 virtual void EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
160 virtual void EmitULEB128Value(const MCExpr *Value);
161
162 virtual void EmitSLEB128Value(const MCExpr *Value);
163163
164164 virtual void EmitGPRel32Value(const MCExpr *Value);
165165
559559 EmitEOL();
560560 }
561561
562 void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace) {
562 void MCAsmStreamer::EmitULEB128Value(const MCExpr *Value) {
563563 int64_t IntValue;
564564 if (Value->EvaluateAsAbsolute(IntValue)) {
565 EmitULEB128IntValue(IntValue, AddrSpace);
565 EmitULEB128IntValue(IntValue);
566566 return;
567567 }
568568 assert(MAI.hasLEB128() && "Cannot print a .uleb");
570570 EmitEOL();
571571 }
572572
573 void MCAsmStreamer::EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace) {
573 void MCAsmStreamer::EmitSLEB128Value(const MCExpr *Value) {
574574 int64_t IntValue;
575575 if (Value->EvaluateAsAbsolute(IntValue)) {
576 EmitSLEB128IntValue(IntValue, AddrSpace);
576 EmitSLEB128IntValue(IntValue);
577577 return;
578578 }
579579 assert(MAI.hasLEB128() && "Cannot print a .sleb");
540540 else
541541 CFAOffset = -Src.getOffset();
542542
543 Streamer.EmitULEB128IntValue(CFAOffset, 1);
543 Streamer.EmitULEB128IntValue(CFAOffset);
544544 return;
545545 }
546546
581581 case MCCFIInstruction::SameValue: {
582582 unsigned Reg = Instr.getDestination().getReg();
583583 Streamer.EmitIntValue(dwarf::DW_CFA_same_value, 1);
584 Streamer.EmitULEB128IntValue(Reg, 1);
584 Streamer.EmitULEB128IntValue(Reg);
585585 return;
586586 }
587587 }
158158 return Child->EmitValueImpl(Value, Size, isPCRel, AddrSpace);
159159 }
160160
161 virtual void EmitULEB128Value(const MCExpr *Value,
162 unsigned AddrSpace = 0) {
161 virtual void EmitULEB128Value(const MCExpr *Value) {
163162 LogCall("EmitULEB128Value");
164 return Child->EmitULEB128Value(Value, AddrSpace);
165 }
166
167 virtual void EmitSLEB128Value(const MCExpr *Value,
168 unsigned AddrSpace = 0) {
163 return Child->EmitULEB128Value(Value);
164 }
165
166 virtual void EmitSLEB128Value(const MCExpr *Value) {
169167 LogCall("EmitSLEB128Value");
170 return Child->EmitSLEB128Value(Value, AddrSpace);
168 return Child->EmitSLEB128Value(Value);
171169 }
172170
173171 virtual void EmitGPRel32Value(const MCExpr *Value) {
6767
6868 virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
6969 bool isPCRel, unsigned AddrSpace) {}
70 virtual void EmitULEB128Value(const MCExpr *Value,
71 unsigned AddrSpace = 0) {}
72 virtual void EmitSLEB128Value(const MCExpr *Value,
73 unsigned AddrSpace = 0) {}
70 virtual void EmitULEB128Value(const MCExpr *Value) {}
71 virtual void EmitSLEB128Value(const MCExpr *Value) {}
7472 virtual void EmitGPRel32Value(const MCExpr *Value) {}
7573 virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value = 0,
7674 unsigned ValueSize = 1,
123123 SD.setOffset(F->getContents().size());
124124 }
125125
126 void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value,
127 unsigned AddrSpace) {
126 void MCObjectStreamer::EmitULEB128Value(const MCExpr *Value) {
128127 int64_t IntValue;
129128 if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
130 EmitULEB128IntValue(IntValue, AddrSpace);
129 EmitULEB128IntValue(IntValue);
131130 return;
132131 }
133132 new MCLEBFragment(*Value, false, getCurrentSectionData());
134133 }
135134
136 void MCObjectStreamer::EmitSLEB128Value(const MCExpr *Value,
137 unsigned AddrSpace) {
135 void MCObjectStreamer::EmitSLEB128Value(const MCExpr *Value) {
138136 int64_t IntValue;
139137 if (Value->EvaluateAsAbsolute(IntValue, getAssembler())) {
140 EmitSLEB128IntValue(IntValue, AddrSpace);
138 EmitSLEB128IntValue(IntValue);
141139 return;
142140 }
143141 new MCLEBFragment(*Value, true, getCurrentSectionData());
143143
144144 virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
145145 bool isPCRel, unsigned AddrSpace);
146 virtual void EmitULEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
147 virtual void EmitSLEB128Value(const MCExpr *Value, unsigned AddrSpace = 0);
146 virtual void EmitULEB128Value(const MCExpr *Value);
147 virtual void EmitSLEB128Value(const MCExpr *Value);
148148 virtual void EmitGPRel32Value(const MCExpr *Value);
149149
150150
382382 EmitEOL();
383383 }
384384
385 void PTXMCAsmStreamer::EmitULEB128Value(const MCExpr *Value,
386 unsigned AddrSpace) {
385 void PTXMCAsmStreamer::EmitULEB128Value(const MCExpr *Value) {
387386 assert(MAI.hasLEB128() && "Cannot print a .uleb");
388387 OS << ".uleb128 " << *Value;
389388 EmitEOL();
390389 }
391390
392 void PTXMCAsmStreamer::EmitSLEB128Value(const MCExpr *Value,
393 unsigned AddrSpace) {
391 void PTXMCAsmStreamer::EmitSLEB128Value(const MCExpr *Value) {
394392 assert(MAI.hasLEB128() && "Cannot print a .sleb");
395393 OS << ".sleb128 " << *Value;
396394 EmitEOL();
582582 virtual void EmitBytes(StringRef Data, unsigned AddrSpace) {}
583583 virtual void EmitValueImpl(const MCExpr *Value, unsigned Size,
584584 bool isPCRel, unsigned AddrSpace) {}
585 virtual void EmitULEB128Value(const MCExpr *Value,
586 unsigned AddrSpace = 0) {}
587 virtual void EmitSLEB128Value(const MCExpr *Value,
588 unsigned AddrSpace = 0) {}
585 virtual void EmitULEB128Value(const MCExpr *Value) {}
586 virtual void EmitSLEB128Value(const MCExpr *Value) {}
589587 virtual void EmitValueToAlignment(unsigned ByteAlignment, int64_t Value,
590588 unsigned ValueSize,
591589 unsigned MaxBytesToEmit) {}