@@ -135,7 +135,7 @@ void MCDwarfLineEntry::Make(MCObjectStreamer *MCOS, MCSection *Section) {
135
135
//
136
136
// This helper routine returns an expression of End - Start + IntVal .
137
137
//
138
- static inline const MCExpr *MakeStartMinusEndExpr (MCContext &Ctx,
138
+ static inline const MCExpr *makeEndMinusStartExpr (MCContext &Ctx,
139
139
const MCSymbol &Start,
140
140
const MCSymbol &End,
141
141
int IntVal) {
@@ -490,7 +490,7 @@ MCDwarfLineTableHeader::Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
490
490
// The length field does not include itself and, in case of the 64-bit DWARF
491
491
// format, the DWARF64 mark.
492
492
emitAbsValue (*MCOS,
493
- MakeStartMinusEndExpr (context, *LineStartSym, *LineEndSym,
493
+ makeEndMinusStartExpr (context, *LineStartSym, *LineEndSym,
494
494
UnitLengthBytes),
495
495
OffsetSize);
496
496
@@ -515,7 +515,7 @@ MCDwarfLineTableHeader::Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
515
515
// Length of the prologue, is the next 4 bytes (8 bytes for DWARF64). This is
516
516
// actually the length from after the length word, to the end of the prologue.
517
517
emitAbsValue (*MCOS,
518
- MakeStartMinusEndExpr (context, *LineStartSym, *ProEndSym,
518
+ makeEndMinusStartExpr (context, *LineStartSym, *ProEndSym,
519
519
(PreHeaderLengthBytes + OffsetSize)),
520
520
OffsetSize);
521
521
@@ -940,7 +940,7 @@ static void EmitGenDwarfAranges(MCStreamer *MCOS,
940
940
const MCExpr *Addr = MCSymbolRefExpr::create (
941
941
StartSymbol, MCSymbolRefExpr::VK_None, context);
942
942
const MCExpr *Size =
943
- MakeStartMinusEndExpr (context, *StartSymbol, *EndSymbol, 0 );
943
+ makeEndMinusStartExpr (context, *StartSymbol, *EndSymbol, 0 );
944
944
MCOS->emitValue (Addr, AddrSize);
945
945
emitAbsValue (*MCOS, Size, AddrSize);
946
946
}
@@ -980,7 +980,7 @@ static void EmitGenDwarfInfo(MCStreamer *MCOS,
980
980
// The 4 (8 for DWARF64) byte total length of the information for this
981
981
// compilation unit, not including the unit length field itself.
982
982
const MCExpr *Length =
983
- MakeStartMinusEndExpr (context, *InfoStart, *InfoEnd, UnitLengthBytes);
983
+ makeEndMinusStartExpr (context, *InfoStart, *InfoEnd, UnitLengthBytes);
984
984
emitAbsValue (*MCOS, Length, OffsetSize);
985
985
986
986
// The 2 byte DWARF version.
@@ -1148,7 +1148,7 @@ static MCSymbol *emitGenDwarfRanges(MCStreamer *MCOS) {
1148
1148
const MCExpr *SectionStartAddr = MCSymbolRefExpr::create (
1149
1149
StartSymbol, MCSymbolRefExpr::VK_None, context);
1150
1150
const MCExpr *SectionSize =
1151
- MakeStartMinusEndExpr (context, *StartSymbol, *EndSymbol, 0 );
1151
+ makeEndMinusStartExpr (context, *StartSymbol, *EndSymbol, 0 );
1152
1152
MCOS->emitInt8 (dwarf::DW_RLE_start_length);
1153
1153
MCOS->emitValue (SectionStartAddr, AddrSize);
1154
1154
MCOS->emitULEB128Value (SectionSize);
@@ -1171,7 +1171,7 @@ static MCSymbol *emitGenDwarfRanges(MCStreamer *MCOS) {
1171
1171
1172
1172
// Emit a range list entry spanning this section.
1173
1173
const MCExpr *SectionSize =
1174
- MakeStartMinusEndExpr (context, *StartSymbol, *EndSymbol, 0 );
1174
+ makeEndMinusStartExpr (context, *StartSymbol, *EndSymbol, 0 );
1175
1175
MCOS->emitIntValue (0 , AddrSize);
1176
1176
emitAbsValue (*MCOS, SectionSize, AddrSize);
1177
1177
}
@@ -1567,7 +1567,7 @@ void FrameEmitterImpl::EmitCompactUnwind(const MCDwarfFrameInfo &Frame) {
1567
1567
1568
1568
// Range Length
1569
1569
const MCExpr *Range =
1570
- MakeStartMinusEndExpr (Context, *Frame.Begin , *Frame.End , 0 );
1570
+ makeEndMinusStartExpr (Context, *Frame.Begin , *Frame.End , 0 );
1571
1571
emitAbsValue (Streamer, Range, 4 );
1572
1572
1573
1573
// Compact Encoding
@@ -1624,7 +1624,7 @@ const MCSymbol &FrameEmitterImpl::EmitCIE(const MCDwarfFrameInfo &Frame) {
1624
1624
Streamer.emitInt32 (dwarf::DW_LENGTH_DWARF64);
1625
1625
1626
1626
// Length
1627
- const MCExpr *Length = MakeStartMinusEndExpr (context, *sectionStart,
1627
+ const MCExpr *Length = makeEndMinusStartExpr (context, *sectionStart,
1628
1628
*sectionEnd, UnitLengthBytes);
1629
1629
emitAbsValue (Streamer, Length, OffsetSize);
1630
1630
@@ -1749,7 +1749,7 @@ void FrameEmitterImpl::EmitFDE(const MCSymbol &cieStart,
1749
1749
Streamer.emitInt32 (dwarf::DW_LENGTH_DWARF64);
1750
1750
1751
1751
// Length
1752
- const MCExpr *Length = MakeStartMinusEndExpr (context, *fdeStart, *fdeEnd, 0 );
1752
+ const MCExpr *Length = makeEndMinusStartExpr (context, *fdeStart, *fdeEnd, 0 );
1753
1753
emitAbsValue (Streamer, Length, OffsetSize);
1754
1754
1755
1755
Streamer.emitLabel (fdeStart);
@@ -1758,11 +1758,11 @@ void FrameEmitterImpl::EmitFDE(const MCSymbol &cieStart,
1758
1758
const MCAsmInfo *asmInfo = context.getAsmInfo ();
1759
1759
if (IsEH) {
1760
1760
const MCExpr *offset =
1761
- MakeStartMinusEndExpr (context, cieStart, *fdeStart, 0 );
1761
+ makeEndMinusStartExpr (context, cieStart, *fdeStart, 0 );
1762
1762
emitAbsValue (Streamer, offset, OffsetSize);
1763
1763
} else if (!asmInfo->doesDwarfUseRelocationsAcrossSections ()) {
1764
1764
const MCExpr *offset =
1765
- MakeStartMinusEndExpr (context, SectionStart, cieStart, 0 );
1765
+ makeEndMinusStartExpr (context, SectionStart, cieStart, 0 );
1766
1766
emitAbsValue (Streamer, offset, OffsetSize);
1767
1767
} else {
1768
1768
Streamer.emitSymbolValue (&cieStart, OffsetSize,
@@ -1777,7 +1777,7 @@ void FrameEmitterImpl::EmitFDE(const MCSymbol &cieStart,
1777
1777
1778
1778
// PC Range
1779
1779
const MCExpr *Range =
1780
- MakeStartMinusEndExpr (context, *frame.Begin , *frame.End , 0 );
1780
+ makeEndMinusStartExpr (context, *frame.Begin , *frame.End , 0 );
1781
1781
emitAbsValue (Streamer, Range, PCSize);
1782
1782
1783
1783
if (IsEH) {
0 commit comments