From: Pavel Labath Date: Wed, 7 Feb 2018 11:13:21 +0000 (+0000) Subject: Remove function DW_DSC_value_to_name X-Git-Tag: llvmorg-7.0.0-rc1~13465 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=986b39b61f804b4783774a9024fab0bcc124af86;p=platform%2Fupstream%2Fllvm.git Remove function DW_DSC_value_to_name It is unused, and the underlying llvm function has been removed as well. llvm-svn: 324472 --- 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);