diff options
author | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-03 16:01:15 -0600 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@quicinc.com> | 2022-12-04 11:52:02 -0600 |
commit | 0ca43d44888885d6caf7636db91fe810e822263c (patch) | |
tree | 1b8e5ee0f5ae8e0163d551a99fcfccd33aa27456 /llvm/lib/MC/MCStreamer.cpp | |
parent | fcf4e360ba6b5f005d2c478ca79112be7a61dacb (diff) | |
download | llvm-0ca43d44888885d6caf7636db91fe810e822263c.zip llvm-0ca43d44888885d6caf7636db91fe810e822263c.tar.gz llvm-0ca43d44888885d6caf7636db91fe810e822263c.tar.bz2 |
DebugInfoMetadata: convert Optional to std::optional
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index 805ca57..5f999b3 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -39,6 +39,7 @@ #include <cassert> #include <cstdint> #include <cstdlib> +#include <optional> #include <utility> using namespace llvm; @@ -230,7 +231,7 @@ Expected<unsigned> MCStreamer::tryEmitDwarfFileDirective(unsigned FileNo, StringRef Directory, StringRef Filename, Optional<MD5::MD5Result> Checksum, - Optional<StringRef> Source, + std::optional<StringRef> Source, unsigned CUID) { return getContext().getDwarfFile(Directory, Filename, FileNo, Checksum, Source, CUID); @@ -239,7 +240,7 @@ MCStreamer::tryEmitDwarfFileDirective(unsigned FileNo, StringRef Directory, void MCStreamer::emitDwarfFile0Directive(StringRef Directory, StringRef Filename, Optional<MD5::MD5Result> Checksum, - Optional<StringRef> Source, + std::optional<StringRef> Source, unsigned CUID) { getContext().setMCLineTableRootFile(CUID, Directory, Filename, Checksum, Source); |