[llvm] Use std::nullopt instead of None (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 4 Dec 2022 21:52:42 +0000 (13:52 -0800)
committerKazu Hirata <kazu@google.com>
Sun, 4 Dec 2022 21:52:42 +0000 (13:52 -0800)
commita38cfc50fcf9df006aaa192a95971c1a06103114
tree2f7f8be35b596b4ff02e86f6dc8a820c7c689078
parentf4c16c44737caac25bf09ec2d85809820579ae40
[llvm] Use std::nullopt instead of None (NFC)

I've verified that every change in this patch affects generated files
and would reduce the number of warnings if None were deprecated.

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
llvm/lib/DebugInfo/Symbolize/MarkupFilter.cpp
llvm/lib/MC/MCTargetOptionsCommandFlags.cpp
llvm/utils/TableGen/AsmMatcherEmitter.cpp
llvm/utils/TableGen/GICombinerEmitter.cpp
llvm/utils/TableGen/RegisterInfoEmitter.cpp
llvm/utils/TableGen/SubtargetEmitter.cpp