aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/BinaryFormat/DwarfTest.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/unittests/BinaryFormat/DwarfTest.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/unittests/BinaryFormat/DwarfTest.cpp')
-rw-r--r--llvm/unittests/BinaryFormat/DwarfTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/BinaryFormat/DwarfTest.cpp b/llvm/unittests/BinaryFormat/DwarfTest.cpp
index ddafbb4..2fff865 100644
--- a/llvm/unittests/BinaryFormat/DwarfTest.cpp
+++ b/llvm/unittests/BinaryFormat/DwarfTest.cpp
@@ -140,8 +140,8 @@ TEST(DwarfTest, getVirtuality) {
}
TEST(DwarfTest, FixedFormSizes) {
- Optional<uint8_t> RefSize;
- Optional<uint8_t> AddrSize;
+ std::optional<uint8_t> RefSize;
+ std::optional<uint8_t> AddrSize;
// Test 32 bit DWARF version 2 with 4 byte addresses.
FormParams Params_2_4_32 = {2, 4, DWARF32};