diff options
author | Fangrui Song <i@maskray.me> | 2022-12-05 00:09:22 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-05 00:09:22 +0000 |
commit | 89fab98e884f05076bbd420d95b5de3596f5452c (patch) | |
tree | 234f5a4340cc34680ffad9872f48dbdb8132ac96 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 35b4fbb559d909a7edf64412c665e99748398ac4 (diff) | |
download | llvm-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/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index b9e44d0..a377743 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -730,7 +730,7 @@ void CodeViewDebug::emitTypeInformation() { TypeRecordMapping typeMapping(CVMCOS); Pipeline.addCallbackToPipeline(typeMapping); - Optional<TypeIndex> B = Table.getFirst(); + std::optional<TypeIndex> B = Table.getFirst(); while (B) { // This will fail if the record data is invalid. CVType Record = Table.getType(*B); |