summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/DNBArch.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2014-03-29 18:54:20 +0000
committerJason Molenda <jmolenda@apple.com>2014-03-29 18:54:20 +0000
commita332978b2ab53306acdef10858c7e954e605ab37 (patch)
treedb0802288ce9a50156d440b82ae606eae60cf129 /lldb/tools/debugserver/source/DNBArch.cpp
parent61e595be4dcd9e63bc3a2b6787ffb647457969cd (diff)
downloadbcm5719-llvm-a332978b2ab53306acdef10858c7e954e605ab37.tar.gz
bcm5719-llvm-a332978b2ab53306acdef10858c7e954e605ab37.zip
lldb arm64 import.
These changes were written by Greg Clayton, Jim Ingham, Jason Molenda. It builds cleanly against TOT llvm with xcodebuild. I updated the cmake files by visual inspection but did not try a build. I haven't built these sources on any non-Mac platforms - I don't think this patch adds any code that requires darwin, but please let me know if I missed something. In debugserver, MachProcess.cpp and MachTask.cpp were renamed to MachProcess.mm and MachTask.mm as they picked up some new Objective-C code needed to launch processes when running on iOS. llvm-svn: 205113
Diffstat (limited to 'lldb/tools/debugserver/source/DNBArch.cpp')
-rw-r--r--lldb/tools/debugserver/source/DNBArch.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lldb/tools/debugserver/source/DNBArch.cpp b/lldb/tools/debugserver/source/DNBArch.cpp
index f56c6a3181e..c3f1fdf2682 100644
--- a/lldb/tools/debugserver/source/DNBArch.cpp
+++ b/lldb/tools/debugserver/source/DNBArch.cpp
@@ -21,18 +21,7 @@
typedef std::map<uint32_t, DNBArchPluginInfo> CPUPluginInfoMap;
-//#if defined (__i386__)
-//static uint32_t g_current_cpu_type = CPU_TYPE_I386;
-//#elif defined (__x86_64__)
-//static uint32_t g_current_cpu_type = CPU_TYPE_X86_64;
-#if defined (__i386__) || defined (__x86_64__)
static uint32_t g_current_cpu_type = 0;
-#elif defined (__arm__)
-static uint32_t g_current_cpu_type = CPU_TYPE_ARM;
-#else
-static uint32_t g_current_cpu_type = 0;
-#endif
-
CPUPluginInfoMap g_arch_plugins;
OpenPOWER on IntegriCloud