diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-04 17:12:44 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-04 17:12:44 -0800 |
commit | 3c09ed006ab35dd8faac03311b14f0857b01949c (patch) | |
tree | e23c93098eb6bdafea2936c2107c89159ba13bdd /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 4b7428e1516e073bf7ae8044519c5327b356e268 (diff) | |
download | llvm-3c09ed006ab35dd8faac03311b14f0857b01949c.zip llvm-3c09ed006ab35dd8faac03311b14f0857b01949c.tar.gz llvm-3c09ed006ab35dd8faac03311b14f0857b01949c.tar.bz2 |
[llvm] Use std::nullopt instead of None in comments (NFC)
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 565e232..228e094 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -1681,8 +1681,8 @@ static void disassembleObject(const Target *TheTarget, ObjectFile &Obj, SectionAddr + Start, CommentStream); if (!Status) { - // If onSymbolStart returns None, that means it didn't trigger any - // interesting handling for this symbol. Try the other symbols + // If onSymbolStart returns std::nullopt, that means it didn't trigger + // any interesting handling for this symbol. Try the other symbols // defined at this address. continue; } |