aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@quicinc.com>2022-12-03 16:01:15 -0600
committerKrzysztof Parzyszek <kparzysz@quicinc.com>2022-12-04 11:52:02 -0600
commit0ca43d44888885d6caf7636db91fe810e822263c (patch)
tree1b8e5ee0f5ae8e0163d551a99fcfccd33aa27456 /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
parentfcf4e360ba6b5f005d2c478ca79112be7a61dacb (diff)
downloadllvm-0ca43d44888885d6caf7636db91fe810e822263c.zip
llvm-0ca43d44888885d6caf7636db91fe810e822263c.tar.gz
llvm-0ca43d44888885d6caf7636db91fe810e822263c.tar.bz2
DebugInfoMetadata: convert Optional to std::optional
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
index 3b36e1a..222bbb0 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
@@ -148,6 +148,7 @@
#include <cstdint>
#include <functional>
#include <map>
+#include <optional>
#include <queue>
#include <tuple>
#include <utility>
@@ -281,7 +282,7 @@ private:
enum struct TransferKind { TransferCopy, TransferSpill, TransferRestore };
using FragmentInfo = DIExpression::FragmentInfo;
- using OptFragmentInfo = Optional<DIExpression::FragmentInfo>;
+ using OptFragmentInfo = std::optional<DIExpression::FragmentInfo>;
/// A pair of debug variable and value location.
struct VarLoc {