/// The build-id is typically a stream of 20 bytes. Return these bytes in
/// printable hexadecimal form if they are available, or std::nullopt
/// otherwise.
- Optional<std::string> getPrintableBuildID() const;
+ std::optional<std::string> getPrintableBuildID() const;
/// If this instance uses a profile, return appropriate profile reader.
const ProfileReaderBase *getProfileReader() const {
uint64_t NextAvailableAddress{0};
/// Location and size of dynamic relocations.
- Optional<uint64_t> DynamicRelocationsAddress;
+ std::optional<uint64_t> DynamicRelocationsAddress;
uint64_t DynamicRelocationsSize{0};
uint64_t DynamicRelativeRelocationsCount{0};
/// PLT relocations are special kind of dynamic relocations stored separately.
- Optional<uint64_t> PLTRelocationsAddress;
+ std::optional<uint64_t> PLTRelocationsAddress;
uint64_t PLTRelocationsSize{0};
/// True if relocation of specified type came from .rela.plt
#include "bolt/RuntimeLibs/InstrumentationRuntimeLibrary.h"
#include "bolt/Utils/CommandLineOpts.h"
#include "bolt/Utils/Utils.h"
-#include "llvm/ADT/Optional.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h"
BuildID = Buf.slice(Offset, Offset + DescSz);
}
-Optional<std::string> RewriteInstance::getPrintableBuildID() const {
+std::optional<std::string> RewriteInstance::getPrintableBuildID() const {
if (BuildID.empty())
return std::nullopt;
// Parse build-id
parseBuildID();
- if (Optional<std::string> FileBuildID = getPrintableBuildID())
+ if (std::optional<std::string> FileBuildID = getPrintableBuildID())
BC->setFileBuildID(*FileBuildID);
parseSDTNotes();