Files
clang-p2996/lldb/source/Core/AddressResolver.cpp
Zachary Turner 2f3df6137a iwyu fixes for lldbCore.
This adjusts header file includes for headers and source files
in Core.  In doing so, one dependency cycle is eliminated
because all the includes from Core to that project were dead
includes anyway.  In places where some files in other projects
were only compiling due to a transitive include from another
header, fixups have been made so that those files also include
the header they need.  Tested on Windows and Linux, and plan
to address failures on OSX and FreeBSD after watching the
bots.

llvm-svn: 299714
2017-04-06 21:28:29 +00:00

47 lines
1.3 KiB
C++

//===-- AddressResolver.cpp -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#include "lldb/Core/AddressResolver.h"
#include "lldb/Core/SearchFilter.h"
namespace lldb_private {
class ModuleList;
}
using namespace lldb_private;
//----------------------------------------------------------------------
// AddressResolver:
//----------------------------------------------------------------------
AddressResolver::AddressResolver() {}
AddressResolver::~AddressResolver() {}
void AddressResolver::ResolveAddressInModules(SearchFilter &filter,
ModuleList &modules) {
filter.SearchInModuleList(*this, modules);
}
void AddressResolver::ResolveAddress(SearchFilter &filter) {
filter.Search(*this);
}
std::vector<AddressRange> &AddressResolver::GetAddressRanges() {
return m_address_ranges;
}
size_t AddressResolver::GetNumberOfAddresses() {
return m_address_ranges.size();
}
AddressRange &AddressResolver::GetAddressRangeAtIndex(size_t idx) {
return m_address_ranges[idx];
}