[Lldb-commits] [lldb] fc28560 - [lldb][NFCI] Remove unused swig macros
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 25 16:47:33 PDT 2023
Author: Alex Langford
Date: 2023-04-25T16:47:00-07:00
New Revision: fc28560fd675a93f06d73628b469fbe3c6850282
URL: https://github.com/llvm/llvm-project/commit/fc28560fd675a93f06d73628b469fbe3c6850282
DIFF: https://github.com/llvm/llvm-project/commit/fc28560fd675a93f06d73628b469fbe3c6850282.diff
LOG: [lldb][NFCI] Remove unused swig macros
These should have been removed in 662548c82683.
Added:
Modified:
lldb/bindings/macros.swig
Removed:
################################################################################
diff --git a/lldb/bindings/macros.swig b/lldb/bindings/macros.swig
index eee504cb2e6f4..cb013daa158d9 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__(){
More information about the lldb-commits
mailing list