linux: Use ArchSpec::GetCore and the ArchSpec::Core enums.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@126406 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/Linux/ProcessLinux.cpp b/source/Plugins/Process/Linux/ProcessLinux.cpp
index 9939fe7..f62a303 100644
--- a/source/Plugins/Process/Linux/ProcessLinux.cpp
+++ b/source/Plugins/Process/Linux/ProcessLinux.cpp
@@ -353,14 +353,14 @@
const uint8_t *opcode = NULL;
size_t opcode_size = 0;
- switch (arch.GetGenericCPUType())
+ switch (arch.GetCore())
{
default:
assert(false && "CPU type not supported!");
break;
- case ArchSpec::eCPU_i386:
- case ArchSpec::eCPU_x86_64:
+ case ArchSpec::eCore_x86_32_i386:
+ case ArchSpec::eCore_x86_64_x86_64:
opcode = g_i386_opcode;
opcode_size = sizeof(g_i386_opcode);
break;