[llvm] Include <optional> instead of "llvm/ADT/Optional.h" (NFC)
authorKazu Hirata <kazu@google.com>
Sat, 14 Jan 2023 23:09:00 +0000 (15:09 -0800)
committerKazu Hirata <kazu@google.com>
Sat, 14 Jan 2023 23:09:00 +0000 (15:09 -0800)
commitda6642a1c81bb5ff68153bcdc138e75e6ecdce43
tree5e8ab6c2d1bcaebf2929394f35ab324273ff0218
parent91682b2631b224a9f6dca9512b5e0951cc4a7762
[llvm] Include <optional> instead of "llvm/ADT/Optional.h" (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
15 files changed:
llvm/include/llvm/ADT/STLForwardCompat.h
llvm/include/llvm/BinaryFormat/Wasm.h
llvm/include/llvm/Debuginfod/Debuginfod.h
llvm/include/llvm/FuzzMutate/IRMutator.h
llvm/include/llvm/LineEditor/LineEditor.h
llvm/include/llvm/Support/raw_ostream.h
llvm/include/llvm/Testing/Support/SupportHelpers.h
llvm/include/llvm/XRay/InstrumentationMap.h
llvm/lib/FuzzMutate/IRMutator.cpp
llvm/lib/Support/VirtualFileSystem.cpp
llvm/lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
llvm/unittests/IR/CFGBuilder.h
llvm/unittests/Support/TypeTraitsTest.cpp
llvm/utils/UnicodeData/UnicodeNameMappingGenerator.cpp