summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-12-17 15:54:09 +0000
committerGreg Clayton <gclayton@apple.com>2010-12-17 15:54:09 +0000
commit8ac365cc4e428b82aeb7362c2139d3b27ee02127 (patch)
tree35c05d0e464e08ac8e2518a8d21ce2c4d1a9ed15 /lldb/source/Plugins/Process
parent442d7544acd775d297a4a1fb72bb0e8412f21cee (diff)
downloadbcm5719-llvm-8ac365cc4e428b82aeb7362c2139d3b27ee02127.tar.gz
bcm5719-llvm-8ac365cc4e428b82aeb7362c2139d3b27ee02127.zip
Removed darwin specific CPU type defines to make UnwindAssemblyProfiler_x86 able to compile on linux (patch from Stephen Wilson).
llvm-svn: 122060
Diffstat (limited to 'lldb/source/Plugins/Process')
-rw-r--r--lldb/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp b/lldb/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp
index 6b64886cef0..30f762610b0 100644
--- a/lldb/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp
+++ b/lldb/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp
@@ -841,14 +841,14 @@ UnwindAssemblyProfiler_x86::FirstNonPrologueInsn (AddressRange& func, Target& ta
return asm_parse.find_first_non_prologue_insn (first_non_prologue_insn);
}
-lldb_private::UnwindAssemblyProfiler *
-UnwindAssemblyProfiler_x86::CreateInstance (const lldb_private::ArchSpec &arch)
+UnwindAssemblyProfiler *
+UnwindAssemblyProfiler_x86::CreateInstance (const ArchSpec &arch)
{
- uint32_t cpu = arch.GetCPUType ();
- if (cpu != CPU_TYPE_X86_64 && cpu != CPU_TYPE_I386)
+ ArchSpec::CPU cpu = arch.GetGenericCPUType ();
+ if (cpu != ArchSpec::eCPU_x86_64 && cpu != ArchSpec::eCPU_i386)
return NULL;
- return new UnwindAssemblyProfiler_x86 (cpu == CPU_TYPE_X86_64 ? k_x86_64 : k_i386);
+ return new UnwindAssemblyProfiler_x86 (cpu == ArchSpec::eCPU_x86_64 ? k_x86_64 : k_i386);
}
OpenPOWER on IntegriCloud