[Lldb-commits] [PATCH 3/4] Use generic CPU types instead of Mach-O types when computing ArchSpec endianness.

Stephen Wilson wilsons at start.ca
Tue Jan 18 13:11:43 PST 2011


---
 source/Core/ArchSpec.cpp |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/source/Core/ArchSpec.cpp b/source/Core/ArchSpec.cpp
index 006aa70..b09c751 100644
--- a/source/Core/ArchSpec.cpp
+++ b/source/Core/ArchSpec.cpp
@@ -1807,15 +1807,15 @@ ArchSpec::SetCPUSubtype (uint32_t subtype)
 ByteOrder
 ArchSpec::GetDefaultEndian () const
 {
-    switch (m_cpu)
+    switch (GetGenericCPUType())
     {
-    case llvm::MachO::CPUTypePowerPC:
-    case llvm::MachO::CPUTypePowerPC64:
+    case eCPU_ppc:
+    case eCPU_ppc64:
         return eByteOrderBig;
 
-    case llvm::MachO::CPUTypeARM:
-    case llvm::MachO::CPUTypeI386:
-    case llvm::MachO::CPUTypeX86_64:
+    case eCPU_arm:
+    case eCPU_i386:
+    case eCPU_x86_64:
         return eByteOrderLittle;
 
     default:
-- 
1.7.3.5




More information about the lldb-commits mailing list