diff options
author | Jason Molenda <jmolenda@apple.com> | 2013-01-12 04:24:50 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2013-01-12 04:24:50 +0000 |
commit | 1a100cd78f70f13fe20d0e4a65c8d3d042014923 (patch) | |
tree | e947fce6756c3d35e9032583d14d5b37c22599a4 /lldb/source/Core/FormatManager.cpp | |
parent | 9f1be6870327f964441c9d5f3571bc3e40025cff (diff) | |
download | bcm5719-llvm-1a100cd78f70f13fe20d0e4a65c8d3d042014923.tar.gz bcm5719-llvm-1a100cd78f70f13fe20d0e4a65c8d3d042014923.zip |
Add ifdef LLDB_DISABLE_PYTHON around newly added use of
AddCXXSummary in FormatManager::LoadSystemFormatters();
that function pulls in code that assumes python; can't
be used without the ifdef.
llvm-svn: 172300
Diffstat (limited to 'lldb/source/Core/FormatManager.cpp')
-rw-r--r-- | lldb/source/Core/FormatManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Core/FormatManager.cpp b/lldb/source/Core/FormatManager.cpp index edcccc88ef5..85723505230 100644 --- a/lldb/source/Core/FormatManager.cpp +++ b/lldb/source/Core/FormatManager.cpp @@ -958,6 +958,7 @@ FormatManager::LoadSystemFormatters() sys_category_sp->GetSummaryNavigator()->Add(ConstString("OSType"), ostype_summary); +#ifndef LLDB_DISABLE_PYTHON // FIXME because of a bug in the FormatNavigator we need to add a summary for both X* and const X* (<rdar://problem/12717717>) AddCXXSummary(sys_category_sp, lldb_private::formatters::Char16StringSummaryProvider, "char16_t * summary provider", ConstString("char16_t *"), string_flags); AddCXXSummary(sys_category_sp, lldb_private::formatters::Char16StringSummaryProvider, "char16_t * summary provider", ConstString("const char16_t *"), string_flags); @@ -967,6 +968,7 @@ FormatManager::LoadSystemFormatters() AddCXXSummary(sys_category_sp, lldb_private::formatters::WCharStringSummaryProvider, "wchar_t * summary provider", ConstString("wchar_t *"), string_flags); AddCXXSummary(sys_category_sp, lldb_private::formatters::WCharStringSummaryProvider, "wchar_t * summary provider", ConstString("const wchar_t *"), string_flags); +#endif } void |