/// segments was mapped. \p FileOffset is the offset in the file of the
/// mapping. Note that \p FileOffset should be page-aligned and could be
/// different from the file offset of the segment which could be unaligned.
- /// If no segment is found that matches \p FileOffset, return NoneType().
+ /// If no segment is found that matches \p FileOffset, return std::nullopt.
Optional<uint64_t> getBaseAddressForMapping(uint64_t MMapAddress,
uint64_t FileOffset) const;
/// Use the map keys containing basic block addresses to infer fall-throughs
/// taken in the path started at FirstLBR.To and ending at SecondLBR.From.
- /// Return NoneType if trace is invalid or the list of fall-throughs
+ /// Return std::nullopt if trace is invalid or the list of fall-throughs
/// otherwise.
Optional<FallthroughListTy> getFallthroughsInTrace(uint64_t FuncAddress,
uint64_t From,
void parseBuildID();
/// The build-id is typically a stream of 20 bytes. Return these bytes in
- /// printable hexadecimal form if they are available, or NoneType otherwise.
+ /// printable hexadecimal form if they are available, or std::nullopt
+ /// otherwise.
Optional<std::string> getPrintableBuildID() const;
/// If this instance uses a profile, return appropriate profile reader.
std::string getUnescapedName(const StringRef &Name);
// Determines which register a given DWARF expression is being assigned to.
-// If the expression is defining the CFA, return NoneType.
+// If the expression is defining the CFA, return std::nullopt.
Optional<uint8_t> readDWARFExpressionTargetReg(StringRef ExprBytes);
} // namespace bolt