diff options
author | Fangrui Song <i@maskray.me> | 2022-12-05 00:09:22 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-05 00:09:22 +0000 |
commit | 89fab98e884f05076bbd420d95b5de3596f5452c (patch) | |
tree | 234f5a4340cc34680ffad9872f48dbdb8132ac96 /llvm/tools/llvm-profgen/ProfiledBinary.cpp | |
parent | 35b4fbb559d909a7edf64412c665e99748398ac4 (diff) | |
download | llvm-89fab98e884f05076bbd420d95b5de3596f5452c.zip llvm-89fab98e884f05076bbd420d95b5de3596f5452c.tar.gz llvm-89fab98e884f05076bbd420d95b5de3596f5452c.tar.bz2 |
[DebugInfo] llvm::Optional => std::optional
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'llvm/tools/llvm-profgen/ProfiledBinary.cpp')
-rw-r--r-- | llvm/tools/llvm-profgen/ProfiledBinary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-profgen/ProfiledBinary.cpp b/llvm/tools/llvm-profgen/ProfiledBinary.cpp index 1de06f9..3d549f7 100644 --- a/llvm/tools/llvm-profgen/ProfiledBinary.cpp +++ b/llvm/tools/llvm-profgen/ProfiledBinary.cpp @@ -760,7 +760,7 @@ void ProfiledBinary::loadSymbolsFromDWARF(ObjectFile &Obj) { // Handles DWO sections that can either be in .o, .dwo or .dwp files. for (const auto &CompilationUnit : DebugContext->compile_units()) { DWARFUnit *const DwarfUnit = CompilationUnit.get(); - if (llvm::Optional<uint64_t> DWOId = DwarfUnit->getDWOId()) { + if (std::optional<uint64_t> DWOId = DwarfUnit->getDWOId()) { DWARFUnit *DWOCU = DwarfUnit->getNonSkeletonUnitDIE(false).getDwarfUnit(); if (!DWOCU->isDWOUnit()) { std::string DWOName = dwarf::toString( |