diff options
| author | Dmitry Vasilyev <dvassiliev@accesssoftek.com> | 2025-03-24 18:40:49 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-24 18:40:49 +0400 |
| commit | 2edf534f5542a02f3ea3c70effb9503c99add809 (patch) | |
| tree | a17ba55db9bc1879e732218e25b24b885efc8379 /lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp | |
| parent | ea68d830d9bf4a482acd69401234b6ecb9807733 (diff) | |
[LLDB][NFC] Added the interface DWARFExpression::Delegate to break dependencies and reduce lldb-server size (#131645)
This patch addresses the issue #129543.
After this patch DWARFExpression does not call DWARFUnit directly and does not depend on
lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp and a lot of clang code.
After this patch the size of lldb-server binary (Linux Aarch64) is reduced from 47MB to 17MB.
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp index 2fb0c224bf8e..53a9a1227337 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp @@ -23,15 +23,5 @@ llvm::StringRef DW_TAG_value_to_name(dw_tag_t tag) { return s_unknown_tag_name; } -const char *DW_OP_value_to_name(uint32_t val) { - static char invalid[100]; - llvm::StringRef llvmstr = llvm::dwarf::OperationEncodingString(val); - if (llvmstr.empty()) { - snprintf(invalid, sizeof(invalid), "Unknown DW_OP constant: 0x%x", val); - return invalid; - } - return llvmstr.data(); -} - } // namespace dwarf } // namespace lldb_private::plugin |
