@@ -916,8 +916,7 @@ static void EmitGenDwarfAranges(MCStreamer *MCOS,
916916 assert (StartSymbol && " StartSymbol must not be NULL" );
917917 assert (EndSymbol && " EndSymbol must not be NULL" );
918918
919- const MCExpr *Addr = MCSymbolRefExpr::create (
920- StartSymbol, MCSymbolRefExpr::VK_None, context);
919+ const MCExpr *Addr = MCSymbolRefExpr::create (StartSymbol, context);
921920 const MCExpr *Size =
922921 makeEndMinusStartExpr (context, *StartSymbol, *EndSymbol, 0 );
923922 MCOS->emitValue (Addr, AddrSize);
@@ -1018,13 +1017,11 @@ static void EmitGenDwarfInfo(MCStreamer *MCOS,
10181017 assert (EndSymbol && " EndSymbol must not be NULL" );
10191018
10201019 // 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);
10231021 MCOS->emitValue (Start, AddrSize);
10241022
10251023 // 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);
10281025 MCOS->emitValue (End, AddrSize);
10291026 }
10301027
@@ -1091,8 +1088,7 @@ static void EmitGenDwarfInfo(MCStreamer *MCOS,
10911088 MCOS->emitInt32 (Entry.getLineNumber ());
10921089
10931090 // 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);
10961092 MCOS->emitValue (AT_low_pc, AddrSize);
10971093 }
10981094
@@ -1124,8 +1120,8 @@ static MCSymbol *emitGenDwarfRanges(MCStreamer *MCOS) {
11241120 for (MCSection *Sec : Sections) {
11251121 const MCSymbol *StartSymbol = Sec->getBeginSymbol ();
11261122 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);
11291125 const MCExpr *SectionSize =
11301126 makeEndMinusStartExpr (context, *StartSymbol, *EndSymbol, 0 );
11311127 MCOS->emitInt8 (dwarf::DW_RLE_start_length);
@@ -1143,8 +1139,8 @@ static MCSymbol *emitGenDwarfRanges(MCStreamer *MCOS) {
11431139 const MCSymbol *EndSymbol = Sec->getEndSymbol (context);
11441140
11451141 // 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);
11481144 MCOS->emitFill (AddrSize, 0xFF );
11491145 MCOS->emitValue (SectionStartAddr, AddrSize);
11501146
0 commit comments