diff options
Diffstat (limited to 'llvm/lib/ObjectYAML/DWARFEmitter.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/DWARFEmitter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ObjectYAML/DWARFEmitter.cpp b/llvm/lib/ObjectYAML/DWARFEmitter.cpp index eec733c7d7f9..c0e2cdd54f07 100644 --- a/llvm/lib/ObjectYAML/DWARFEmitter.cpp +++ b/llvm/lib/ObjectYAML/DWARFEmitter.cpp @@ -423,7 +423,7 @@ Error DWARFYAML::emitDebugInfo(raw_ostream &OS, const DWARFYAML::Data &DI) { std::string EntryBuffer; raw_string_ostream EntryBufferOS(EntryBuffer); - uint64_t AbbrevTableID = Unit.AbbrevTableID.getValueOr(I); + uint64_t AbbrevTableID = Unit.AbbrevTableID.value_or(I); for (const DWARFYAML::Entry &Entry : Unit.Entries) { if (Expected<uint64_t> EntryLength = writeDIE(DI, I, AbbrevTableID, Params, Entry, EntryBufferOS, @@ -507,7 +507,7 @@ static void writeExtendedOpcode(const DWARFYAML::LineTableOpcode &Op, for (auto OpByte : Op.UnknownOpcodeData) writeInteger((uint8_t)OpByte, OpBufferOS, IsLittleEndian); } - uint64_t ExtLen = Op.ExtLen.getValueOr(OpBuffer.size()); + uint64_t ExtLen = Op.ExtLen.value_or(OpBuffer.size()); encodeULEB128(ExtLen, OS); OS.write(OpBuffer.data(), OpBuffer.size()); } @@ -582,7 +582,7 @@ Error DWARFYAML::emitDebugLine(raw_ostream &OS, const DWARFYAML::Data &DI) { writeInteger(LineTable.LineRange, BufferOS, DI.IsLittleEndian); std::vector<uint8_t> StandardOpcodeLengths = - LineTable.StandardOpcodeLengths.getValueOr( + LineTable.StandardOpcodeLengths.value_or( getStandardOpcodeLengths(LineTable.Version, LineTable.OpcodeBase)); uint8_t OpcodeBase = LineTable.OpcodeBase ? *LineTable.OpcodeBase |