[ARM] Split large truncating MVE stores
[llvm-complete.git] / lib / DebugInfo / CodeView / Line.cpp
blob53adc8cac511511e6966cb0a60bd1ba73a90b067
1 //===-- Line.cpp ----------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "llvm/DebugInfo/CodeView/Line.h"
11 using namespace llvm;
12 using namespace codeview;
14 LineInfo::LineInfo(uint32_t StartLine, uint32_t EndLine, bool IsStatement) {
15 LineData = StartLine & StartLineMask;
16 uint32_t LineDelta = EndLine - StartLine;
17 LineData |= (LineDelta << EndLineDeltaShift) & EndLineDeltaMask;
18 if (IsStatement) {
19 LineData |= StatementFlag;