summaryrefslogtreecommitdiffstats
path: root/lldb/scripts
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-12-09 09:33:32 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2019-12-09 09:35:48 -0800
commitfe96d1ee788d3e8dcdc6fb984bc5376d9ec84d7d (patch)
tree17f840d9175f01b3a553bcac702dd8c57d75609c /lldb/scripts
parentd32484f40cbe1249643f024e3a10c4e3c50ff837 (diff)
downloadbcm5719-llvm-fe96d1ee788d3e8dcdc6fb984bc5376d9ec84d7d.tar.gz
bcm5719-llvm-fe96d1ee788d3e8dcdc6fb984bc5376d9ec84d7d.zip
[lldb/SWIG] Guard Python type map in SWIG interface by SWIGPYTHON
Guard the Python type map in SBTarget by the SWIGPYTHON define to ensures the rest of the interface can be reused for other languages supported by SWIG.
Diffstat (limited to 'lldb/scripts')
-rw-r--r--lldb/scripts/interface/SBTarget.i7
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/scripts/interface/SBTarget.i b/lldb/scripts/interface/SBTarget.i
index 36492f5eed0..b31622889e5 100644
--- a/lldb/scripts/interface/SBTarget.i
+++ b/lldb/scripts/interface/SBTarget.i
@@ -596,6 +596,7 @@ public:
const SBFileSpecList &module_list,
const SBFileSpecList &comp_unit_list);
+#ifdef SWIGPYTHON
%typemap(in) (const char **symbol_name, uint32_t num_names) {
using namespace lldb_private;
/* Check if is a list */
@@ -622,11 +623,7 @@ public:
return NULL;
}
}
-
-//%typecheck(SWIG_TYPECHECK_STRING_ARRAY) (const char *symbol_name[], uint32_t num_names) {
-// $1 = 1;
-// $2 = 1;
-//}
+#endif
lldb::SBBreakpoint
BreakpointCreateByNames (const char **symbol_name,
OpenPOWER on IntegriCloud