aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-profgen/ProfiledBinary.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-12-05 00:09:22 +0000
committerFangrui Song <i@maskray.me>2022-12-05 00:09:22 +0000
commit89fab98e884f05076bbd420d95b5de3596f5452c (patch)
tree234f5a4340cc34680ffad9872f48dbdb8132ac96 /llvm/tools/llvm-profgen/ProfiledBinary.cpp
parent35b4fbb559d909a7edf64412c665e99748398ac4 (diff)
downloadllvm-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.cpp2
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(