@@ -916,8 +916,7 @@ static void EmitGenDwarfAranges(MCStreamer *MCOS,
916
916
assert (StartSymbol && " StartSymbol must not be NULL" );
917
917
assert (EndSymbol && " EndSymbol must not be NULL" );
918
918
919
- const MCExpr *Addr = MCSymbolRefExpr::create (
920
- StartSymbol, MCSymbolRefExpr::VK_None, context);
919
+ const MCExpr *Addr = MCSymbolRefExpr::create (StartSymbol, context);
921
920
const MCExpr *Size =
922
921
makeEndMinusStartExpr (context, *StartSymbol, *EndSymbol, 0 );
923
922
MCOS->emitValue (Addr, AddrSize);
@@ -1018,13 +1017,11 @@ static void EmitGenDwarfInfo(MCStreamer *MCOS,
1018
1017
assert (EndSymbol && " EndSymbol must not be NULL" );
1019
1018
1020
1019
// AT_low_pc, the first address of the default .text section.
1021
- const MCExpr *Start = MCSymbolRefExpr::create (
1022
- StartSymbol, MCSymbolRefExpr::VK_None, context);
1020
+ const MCExpr *Start = MCSymbolRefExpr::create (StartSymbol, context);
1023
1021
MCOS->emitValue (Start, AddrSize);
1024
1022
1025
1023
// AT_high_pc, the last address of the default .text section.
1026
- const MCExpr *End = MCSymbolRefExpr::create (
1027
- EndSymbol, MCSymbolRefExpr::VK_None, context);
1024
+ const MCExpr *End = MCSymbolRefExpr::create (EndSymbol, context);
1028
1025
MCOS->emitValue (End, AddrSize);
1029
1026
}
1030
1027
@@ -1091,8 +1088,7 @@ static void EmitGenDwarfInfo(MCStreamer *MCOS,
1091
1088
MCOS->emitInt32 (Entry.getLineNumber ());
1092
1089
1093
1090
// AT_low_pc, start address of the label.
1094
- const MCExpr *AT_low_pc = MCSymbolRefExpr::create (Entry.getLabel (),
1095
- MCSymbolRefExpr::VK_None, context);
1091
+ const auto *AT_low_pc = MCSymbolRefExpr::create (Entry.getLabel (), context);
1096
1092
MCOS->emitValue (AT_low_pc, AddrSize);
1097
1093
}
1098
1094
@@ -1124,8 +1120,8 @@ static MCSymbol *emitGenDwarfRanges(MCStreamer *MCOS) {
1124
1120
for (MCSection *Sec : Sections) {
1125
1121
const MCSymbol *StartSymbol = Sec->getBeginSymbol ();
1126
1122
const MCSymbol *EndSymbol = Sec->getEndSymbol (context);
1127
- const MCExpr *SectionStartAddr = MCSymbolRefExpr::create (
1128
- StartSymbol, MCSymbolRefExpr::VK_None , context);
1123
+ const MCExpr *SectionStartAddr =
1124
+ MCSymbolRefExpr::create (StartSymbol , context);
1129
1125
const MCExpr *SectionSize =
1130
1126
makeEndMinusStartExpr (context, *StartSymbol, *EndSymbol, 0 );
1131
1127
MCOS->emitInt8 (dwarf::DW_RLE_start_length);
@@ -1143,8 +1139,8 @@ static MCSymbol *emitGenDwarfRanges(MCStreamer *MCOS) {
1143
1139
const MCSymbol *EndSymbol = Sec->getEndSymbol (context);
1144
1140
1145
1141
// Emit a base address selection entry for the section start.
1146
- const MCExpr *SectionStartAddr = MCSymbolRefExpr::create (
1147
- StartSymbol, MCSymbolRefExpr::VK_None , context);
1142
+ const MCExpr *SectionStartAddr =
1143
+ MCSymbolRefExpr::create (StartSymbol , context);
1148
1144
MCOS->emitFill (AddrSize, 0xFF );
1149
1145
MCOS->emitValue (SectionStartAddr, AddrSize);
1150
1146
0 commit comments