Coverage Report

Created: 2022-01-18 06:27

/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Core/AddressResolver.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- AddressResolver.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
//===----------------------------------------------------------------------===//
8
9
#include "lldb/Core/AddressResolver.h"
10
11
#include "lldb/Core/SearchFilter.h"
12
13
namespace lldb_private {
14
class ModuleList;
15
}
16
17
using namespace lldb_private;
18
19
// AddressResolver:
20
1.29k
AddressResolver::AddressResolver() = default;
21
22
1.29k
AddressResolver::~AddressResolver() = default;
23
24
void AddressResolver::ResolveAddressInModules(SearchFilter &filter,
25
0
                                              ModuleList &modules) {
26
0
  filter.SearchInModuleList(*this, modules);
27
0
}
28
29
1.29k
void AddressResolver::ResolveAddress(SearchFilter &filter) {
30
1.29k
  filter.Search(*this);
31
1.29k
}
32
33
0
std::vector<AddressRange> &AddressResolver::GetAddressRanges() {
34
0
  return m_address_ranges;
35
0
}
36
37
1.40k
size_t AddressResolver::GetNumberOfAddresses() {
38
1.40k
  return m_address_ranges.size();
39
1.40k
}
40
41
111
AddressRange &AddressResolver::GetAddressRangeAtIndex(size_t idx) {
42
111
  return m_address_ranges[idx];
43
111
}