[Lldb-commits] [lldb] r125706 - /lldb/trunk/source/Host/common/Host.cpp
Greg Clayton
gclayton at apple.com
Wed Feb 16 18:05:38 PST 2011
Author: gclayton
Date: Wed Feb 16 20:05:38 2011
New Revision: 125706
URL: http://llvm.org/viewvc/llvm-project?rev=125706&view=rev
Log:
Modified version of Marco Minutoli's host arch patch.
Modified:
lldb/trunk/source/Host/common/Host.cpp
Modified: lldb/trunk/source/Host/common/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/common/Host.cpp?rev=125706&r1=125705&r2=125706&view=diff
==============================================================================
--- lldb/trunk/source/Host/common/Host.cpp (original)
+++ lldb/trunk/source/Host/common/Host.cpp Wed Feb 16 20:05:38 2011
@@ -294,37 +294,31 @@
#if defined (__x86_64__)
g_host_arch_64.SetArch ("x86_64");
- g_supports_32 = false;
- g_supports_64 = true;
#elif defined (__i386__)
- g_host_arch.SetArch ("i386");
- g_supports_32 = true;
- g_supports_64 = false;
+ g_host_arch_32.SetArch ("i386");
#elif defined (__arm__)
- g_host_arch.SetArch ("arm");
- g_supports_32 = true;
- g_supports_64 = false;
+ g_host_arch_32.SetArch ("arm");
#elif defined (__ppc64__)
- g_host_arch.SetArch ("ppc64");
- g_supports_32 = false;
- g_supports_64 = true;
+ g_host_arch_64.SetArch ("ppc64");
#elif defined (__powerpc__) || defined (__ppc__)
- g_host_arch.SetArch ("ppc");
- g_supports_32 = true;
- g_supports_64 = false;
+
+ g_host_arch_32.SetArch ("ppc");
#else
#error undefined architecture, define your architecture here
#endif
+
+ g_supports_32 = g_host_arch_32.IsValid();
+ g_supports_64 = g_host_arch_64.IsValid();
}
#endif // #else for #if defined (__APPLE__)
More information about the lldb-commits
mailing list