From e3b557809604d036af6e00c60f012c2025b59a5e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 11 Feb 2023 13:38:04 +0100 Subject: Vendor import of llvm-project main llvmorg-16-init-18548-gb0daacf58f41, the last commit before the upstream release/17.x branch was created. --- llvm/lib/MC/MCCodeView.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/MC/MCCodeView.cpp') diff --git a/llvm/lib/MC/MCCodeView.cpp b/llvm/lib/MC/MCCodeView.cpp index 375d54696cb2..aec8fc89acb2 100644 --- a/llvm/lib/MC/MCCodeView.cpp +++ b/llvm/lib/MC/MCCodeView.cpp @@ -185,7 +185,7 @@ void CodeViewContext::emitStringTable(MCObjectStreamer &OS) { InsertedStrTabFragment = true; } - OS.emitValueToAlignment(4, 0); + OS.emitValueToAlignment(Align(4), 0); OS.emitLabel(StringEnd); } @@ -233,7 +233,7 @@ void CodeViewContext::emitFileChecksums(MCObjectStreamer &OS) { OS.emitInt8(static_cast(File.Checksum.size())); OS.emitInt8(File.ChecksumKind); OS.emitBytes(toStringRef(File.Checksum)); - OS.emitValueToAlignment(4); + OS.emitValueToAlignment(Align(4)); } OS.emitLabel(FileEnd); @@ -318,10 +318,10 @@ std::pair CodeViewContext::getLineExtent(unsigned FuncId) { ArrayRef CodeViewContext::getLinesForExtent(size_t L, size_t R) { if (R <= L) - return None; + return std::nullopt; if (L >= MCCVLines.size()) - return None; - return makeArrayRef(&MCCVLines[L], R - L); + return std::nullopt; + return ArrayRef(&MCCVLines[L], R - L); } void CodeViewContext::emitLineTableForFunction(MCObjectStreamer &OS, -- cgit v1.2.3