summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-02-24 00:17:05 +0000
committerVedant Kumar <vsk@apple.com>2018-02-24 00:17:05 +0000
commitd4e2dabbbb4cf31d4cebb26bf6fefe4b0249bec9 (patch)
tree3d0f3c47d36ddfd4bf81094748b3d721f2696951 /lldb/tools/debugserver/source/MacOSX
parentf6769ae1760ce3a4ccc2d4a843fcded748d8b0ec (diff)
downloadbcm5719-llvm-d4e2dabbbb4cf31d4cebb26bf6fefe4b0249bec9.tar.gz
bcm5719-llvm-d4e2dabbbb4cf31d4cebb26bf6fefe4b0249bec9.zip
Delete dead code in MachVMMemory.cpp, NFC
This addresses a compiler warning. llvm-svn: 326002
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
index 5d6bb667590..eb5e8abd505 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachVMMemory.cpp
@@ -113,42 +113,6 @@ static uint64_t GetPhysicalMemory() {
return physical_memory;
}
-// Test whether the virtual address is within the architecture's shared region.
-static bool InSharedRegion(mach_vm_address_t addr, cpu_type_t type) {
- mach_vm_address_t base = 0, size = 0;
-
- switch (type) {
-#if defined(CPU_TYPE_ARM64) && defined(SHARED_REGION_BASE_ARM64)
- case CPU_TYPE_ARM64:
- base = SHARED_REGION_BASE_ARM64;
- size = SHARED_REGION_SIZE_ARM64;
- break;
-#endif
-
- case CPU_TYPE_ARM:
- base = SHARED_REGION_BASE_ARM;
- size = SHARED_REGION_SIZE_ARM;
- break;
-
- case CPU_TYPE_X86_64:
- base = SHARED_REGION_BASE_X86_64;
- size = SHARED_REGION_SIZE_X86_64;
- break;
-
- case CPU_TYPE_I386:
- base = SHARED_REGION_BASE_I386;
- size = SHARED_REGION_SIZE_I386;
- break;
-
- default: {
- // Log error abut unknown CPU type
- break;
- }
- }
-
- return (addr >= base && addr < (base + size));
-}
-
nub_bool_t MachVMMemory::GetMemoryProfile(
DNBProfileDataScanType scanType, task_t task, struct task_basic_info ti,
cpu_type_t cputype, nub_process_t pid, vm_statistics64_data_t &vminfo,
OpenPOWER on IntegriCloud