[Lldb-commits] [lldb] [lldb] Remove unused swig macro (NFC) (PR #157905)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 10 10:15:17 PDT 2025
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/157905
None
>From 807ddd25cb666a852b7fc61a108d40ac389729e4 Mon Sep 17 00:00:00 2001
From: Dave Lee <davelee.com at gmail.com>
Date: Thu, 4 Sep 2025 11:19:52 -0700
Subject: [PATCH] [lldb] Remove unused swig macro (NFC)
---
lldb/bindings/python/python.swig | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/lldb/bindings/python/python.swig b/lldb/bindings/python/python.swig
index 278c0eed2bab2..4a5a39dc4b06d 100644
--- a/lldb/bindings/python/python.swig
+++ b/lldb/bindings/python/python.swig
@@ -59,23 +59,6 @@ except ImportError:
// Parameter types will be used in the autodoc string.
%feature("autodoc", "1");
-%define ARRAYHELPER(type,name)
-%inline %{
-type *new_ ## name (int nitems) {
- return (type *) malloc(sizeof(type)*nitems);
-}
-void delete_ ## name(type *t) {
- free(t);
-}
-type name ## _get(type *t, int index) {
- return t[index];
-}
-void name ## _set(type *t, int index, type val) {
- t[index] = val;
-}
-%}
-%enddef
-
%pythoncode%{
import uuid
import re
More information about the lldb-commits
mailing list