From b5500b9ca0102f1ccaf32f0e77e96d0739aded9b Mon Sep 17 00:00:00 2001 From: pascal Date: Sat, 3 Sep 2016 22:46:54 +0000 Subject: Use the space freed up by sparc and zaurus to import LLVM. ok hackroom@ --- gnu/llvm/lib/DebugInfo/CodeView/Line.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 gnu/llvm/lib/DebugInfo/CodeView/Line.cpp (limited to 'gnu/llvm/lib/DebugInfo/CodeView/Line.cpp') diff --git a/gnu/llvm/lib/DebugInfo/CodeView/Line.cpp b/gnu/llvm/lib/DebugInfo/CodeView/Line.cpp new file mode 100644 index 00000000000..4cb766b5fd2 --- /dev/null +++ b/gnu/llvm/lib/DebugInfo/CodeView/Line.cpp @@ -0,0 +1,22 @@ +//===-- Line.cpp ----------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "llvm/DebugInfo/CodeView/Line.h" + +using namespace llvm; +using namespace codeview; + +LineInfo::LineInfo(uint32_t StartLine, uint32_t EndLine, bool IsStatement) { + LineData = StartLine & StartLineMask; + uint32_t LineDelta = EndLine - StartLine; + LineData |= (LineDelta << EndLineDeltaShift) & EndLineDeltaMask; + if (IsStatement) { + LineData |= StatementFlag; + } +} -- cgit v1.2.3-59-g8ed1b