Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/DebugInfo/DWARF/DWARFAddressRange.cpp
Line
Count
Source
1
//===- DWARFDebugAranges.cpp ------------------------------------*- C++ -*-===//
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
//===----------------------------------------------------------------------===//
8
9
#include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"
10
11
#include "llvm/Support/Format.h"
12
#include "llvm/Support/raw_ostream.h"
13
14
using namespace llvm;
15
16
void DWARFAddressRange::dump(raw_ostream &OS, uint32_t AddressSize,
17
198
                             DIDumpOptions DumpOpts) const {
18
198
19
198
  OS << (DumpOpts.DisplayRawContents ? 
" "20
:
"["178
);
20
198
  OS << format("0x%*.*" PRIx64 ", ", AddressSize * 2, AddressSize * 2, LowPC)
21
198
     << format("0x%*.*" PRIx64, AddressSize * 2, AddressSize * 2, HighPC);
22
198
  OS << (DumpOpts.DisplayRawContents ? 
""20
:
")"178
);
23
198
}
24
25
2
raw_ostream &llvm::operator<<(raw_ostream &OS, const DWARFAddressRange &R) {
26
2
  R.dump(OS, /* AddressSize */ 8);
27
2
  return OS;
28
2
}