Skip to content

Conversation

@kastiglione
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Sep 10, 2025

@llvm/pr-subscribers-lldb

Author: Dave Lee (kastiglione)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/157905.diff

1 Files Affected:

  • (modified) lldb/bindings/python/python.swig (-17)
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

@kastiglione kastiglione merged commit 20cfaf0 into llvm:main Sep 10, 2025
11 checks passed
@kastiglione kastiglione deleted the lldb-Remove-unused-swig-macro-NFC branch September 10, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants