[LoongArch][Clang] Make the parameters and return value of {x,}vorn.v builti ns ...
[llvm-project.git] / lldb / source / Core / AddressResolver.cpp
blob87b0abd34e52f8ec2a6099ad02b7d2947c10d23e
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 //===----------------------------------------------------------------------===//
9 #include "lldb/Core/AddressResolver.h"
11 #include "lldb/Core/SearchFilter.h"
13 namespace lldb_private {
14 class ModuleList;
17 using namespace lldb_private;
19 // AddressResolver:
20 AddressResolver::AddressResolver() = default;
22 AddressResolver::~AddressResolver() = default;
24 void AddressResolver::ResolveAddressInModules(SearchFilter &filter,
25 ModuleList &modules) {
26 filter.SearchInModuleList(*this, modules);
29 void AddressResolver::ResolveAddress(SearchFilter &filter) {
30 filter.Search(*this);
33 std::vector<AddressRange> &AddressResolver::GetAddressRanges() {
34 return m_address_ranges;
37 size_t AddressResolver::GetNumberOfAddresses() {
38 return m_address_ranges.size();
41 AddressRange &AddressResolver::GetAddressRangeAtIndex(size_t idx) {
42 return m_address_ranges[idx];