diff options
author | Jason Molenda <jmolenda@apple.com> | 2012-03-08 04:03:25 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2012-03-08 04:03:25 +0000 |
commit | 82df6635fe6543c8d5426512f72a6aa891bd1fbb (patch) | |
tree | 9f57b5330db17b0b81db7b64b599ff9c8db31d9e /lldb/source | |
parent | d60cb3822f6095bb77e6918b1b32e3bc515cc513 (diff) | |
download | bcm5719-llvm-82df6635fe6543c8d5426512f72a6aa891bd1fbb.tar.gz bcm5719-llvm-82df6635fe6543c8d5426512f72a6aa891bd1fbb.zip |
Use a new define, NO_XPC_SERVICES, to indicate that macosx/Host.mm
shouldn't compile any of the XPC support code.
Update macosx/Host.mm to use that define.
Add a LLDB_DISABLE_PYTHON ifdef block around a new function in
Core/FormatManager.cpp.
<rdar://problem/10942125>
llvm-svn: 152293
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/Core/FormatManager.cpp | 3 | ||||
-rw-r--r-- | lldb/source/Host/macosx/Host.mm | 12 |
2 files changed, 8 insertions, 7 deletions
diff --git a/lldb/source/Core/FormatManager.cpp b/lldb/source/Core/FormatManager.cpp index 2369514da35..84d26cf0c3e 100644 --- a/lldb/source/Core/FormatManager.cpp +++ b/lldb/source/Core/FormatManager.cpp @@ -696,6 +696,7 @@ AddSummary(TypeCategoryImpl::SharedPointer category_sp, summary_sp); } +#ifndef LLDB_DISABLE_PYTHON static void AddScriptSummary(TypeCategoryImpl::SharedPointer category_sp, const char* funct_name, @@ -712,7 +713,7 @@ AddScriptSummary(TypeCategoryImpl::SharedPointer category_sp, category_sp->GetSummaryNavigator()->Add(type_name, summary_sp); } - +#endif #ifndef LLDB_DISABLE_PYTHON void diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 4b3d6ead0ea..443a2834499 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -12,10 +12,10 @@ #include <AvailabilityMacros.h> #if !defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 -#define BUILDING_ON_SNOW_LEOPARD 1 +#define NO_XPC_SERVICES 1 #endif -#if !BUILDING_ON_SNOW_LEOPARD +#if !defined(NO_XPC_SERVICES) #define __XPC_PRIVATE_H__ #include <xpc/xpc.h> #include "LauncherXPCService.h" @@ -1260,7 +1260,7 @@ GetPosixspawnFlags (ProcessLaunchInfo &launch_info) return flags; } -#if !BUILDING_ON_SNOW_LEOPARD +#if !NO_XPC_SERVICES static void PackageXPCArguments (xpc_object_t message, const char *prefix, const Args& args) { @@ -1355,7 +1355,7 @@ getXPCAuthorization (ProcessLaunchInfo &launch_info) static Error LaunchProcessXPC (const char *exe_path, ProcessLaunchInfo &launch_info, ::pid_t &pid) { -#if !BUILDING_ON_SNOW_LEOPARD +#if !NO_XPC_SERVICES Error error = getXPCAuthorization(launch_info); if (error.Fail()) return error; @@ -1439,9 +1439,9 @@ LaunchProcessXPC (const char *exe_path, ProcessLaunchInfo &launch_info, ::pid_t error.SetErrorStringWithFormat("Problems with launching via XPC. Error type : %i, code : %i", errorType, errorCode); } } -#endif return error; +#endif } static Error @@ -1596,7 +1596,7 @@ ShouldLaunchUsingXPC(const char *exe_path, ProcessLaunchInfo &launch_info) { bool result = false; -#if !BUILDING_ON_SNOW_LEOPARD +#if !NO_XPC_SERVICES const char *debugserver = "/debugserver"; int len = strlen(debugserver); int exe_len = strlen(exe_path); |