From 986b39b61f804b4783774a9024fab0bcc124af86 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 7 Feb 2018 11:13:21 +0000 Subject: [PATCH] Remove function DW_DSC_value_to_name It is unused, and the underlying llvm function has been removed as well. llvm-svn: 324472 --- lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp | 10 ---------- lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp index 2ff0fe3aac41..1d927ba3bca3 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp @@ -473,16 +473,6 @@ const char *DW_ORD_value_to_name(uint32_t val) { return llvmstr.data(); } -const char *DW_DSC_value_to_name(uint32_t val) { - static char invalid[100]; - llvm::StringRef llvmstr = llvm::dwarf::DiscriminantString(val); - if (llvmstr.empty()) { - snprintf(invalid, sizeof(invalid), "Unknown DW_DSC constant: 0x%x", val); - return invalid; - } - return llvmstr.data(); -} - const char *DW_LNS_value_to_name(uint32_t val) { static char invalid[100]; llvm::StringRef llvmstr = llvm::dwarf::LNStandardString(val); diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.h b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.h index 038f5706c060..926f83b3564a 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.h +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDefines.h @@ -58,8 +58,6 @@ const char *DW_INL_value_to_name(uint32_t val); const char *DW_ORD_value_to_name(uint32_t val); -const char *DW_DSC_value_to_name(uint32_t val); - const char *DW_LNS_value_to_name(uint32_t val); const char *DW_LNE_value_to_name(uint32_t val); -- 2.34.1