[Lldb-commits] [lldb] r122060 - /lldb/trunk/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp
Greg Clayton
gclayton at apple.com
Fri Dec 17 07:54:09 PST 2010
Author: gclayton
Date: Fri Dec 17 09:54:09 2010
New Revision: 122060
URL: http://llvm.org/viewvc/llvm-project?rev=122060&view=rev
Log:
Removed darwin specific CPU type defines to make UnwindAssemblyProfiler_x86 able to compile on linux (patch from Stephen Wilson).
Modified:
lldb/trunk/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp
Modified: lldb/trunk/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp?rev=122060&r1=122059&r2=122060&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/UnwindAssemblyProfiler-x86.cpp Fri Dec 17 09:54:09 2010
@@ -841,14 +841,14 @@
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);
}
More information about the lldb-commits
mailing list