[MCDwarf] Use emplace to avoid move assignment. NFC
This commit is contained in:
parent
e190b7cc90
commit
b0c4cd35df
|
@ -266,7 +266,7 @@ void MCDwarfLineTable::emit(MCStreamer *MCOS, MCDwarfLineTableParams Params) {
|
|||
// In a v5 non-split line table, put the strings in a separate section.
|
||||
Optional<MCDwarfLineStr> LineStr;
|
||||
if (context.getDwarfVersion() >= 5)
|
||||
LineStr = MCDwarfLineStr(context);
|
||||
LineStr.emplace(context);
|
||||
|
||||
// Switch to the section where the table will be emitted into.
|
||||
MCOS->switchSection(context.getObjectFileInfo()->getDwarfLineSection());
|
||||
|
|
|
@ -120,7 +120,7 @@ public:
|
|||
MCDwarfLineTableParams Params = Assembler.getDWARFLinetableParams();
|
||||
Optional<MCDwarfLineStr> LineStr(None);
|
||||
if (Ctx.getDwarfVersion() >= 5) {
|
||||
LineStr = MCDwarfLineStr(Ctx);
|
||||
LineStr.emplace(Ctx);
|
||||
Header.setRootFile("dir", "file", None, None);
|
||||
}
|
||||
MCSymbol *LineEndSym = Header.Emit(TheStreamer, Params, LineStr).second;
|
||||
|
|
Loading…
Reference in New Issue