aboutsummaryrefslogtreecommitdiff
path: root/lldb/bindings
diff options
context:
space:
mode:
authorAlex Langford <alangford@apple.com>2023-04-25 16:45:19 -0700
committerAlex Langford <alangford@apple.com>2023-04-25 16:47:00 -0700
commitfc28560fd675a93f06d73628b469fbe3c6850282 (patch)
treecee4e5537f05424f4bc66f92aa9d9c5bbe3d883e /lldb/bindings
parent97a03eb2eb5acf269db6253fe540626b52950f97 (diff)
downloadllvm-fc28560fd675a93f06d73628b469fbe3c6850282.zip
llvm-fc28560fd675a93f06d73628b469fbe3c6850282.tar.gz
llvm-fc28560fd675a93f06d73628b469fbe3c6850282.tar.bz2
[lldb][NFCI] Remove unused swig macros
These should have been removed in 662548c82683.
Diffstat (limited to 'lldb/bindings')
-rw-r--r--lldb/bindings/macros.swig34
1 files changed, 0 insertions, 34 deletions
diff --git a/lldb/bindings/macros.swig b/lldb/bindings/macros.swig
index eee504c..cb013da 100644
--- a/lldb/bindings/macros.swig
+++ b/lldb/bindings/macros.swig
@@ -1,18 +1,3 @@
-%define STRING_EXTENSION_LEVEL(Class, Level)
-%extend {
- std::string lldb:: ## Class ## ::__repr__(){
- lldb::SBStream stream;
- $self->GetDescription (stream, Level);
- const char *desc = stream.GetData();
- size_t desc_len = stream.GetSize();
- if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) {
- --desc_len;
- }
- return std::string(desc, desc_len);
- }
-}
-%enddef
-
%define STRING_EXTENSION_LEVEL_OUTSIDE(Class, Level)
%extend lldb:: ## Class ## {
std::string __repr__(){
@@ -28,25 +13,6 @@
}
%enddef
-%define STRING_EXTENSION(Class)
-%extend {
- std::string lldb:: ## Class ## ::__repr__(){
- lldb::SBStream stream;
- $self->GetDescription (stream);
- const char *desc = stream.GetData();
- size_t desc_len = stream.GetSize();
- if (desc_len > 0 && (desc[desc_len-1] == '\n' || desc[desc_len-1] == '\r')) {
- --desc_len;
- }
- return std::string(desc, desc_len);
- }
-}
-%enddef
-
-// NOTE:
-// This is for when you are peforming the extension from outside of the class
-// instead of inside of it. If this change works out, it will replace
-// STRING_EXTENSION entirely.
%define STRING_EXTENSION_OUTSIDE(Class)
%extend lldb:: ## Class ## {
std::string __repr__(){