summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2019-10-08 21:48:46 +0000
committerDavid Blaikie <dblaikie@gmail.com>2019-10-08 21:48:46 +0000
commit5841e9af1dff8bfdf22ad9716ad9d0ae8d73dbd6 (patch)
tree2ee78790b58420ca3300f7ee8a93a8a6a1d9acf6 /llvm/lib
parent35b63a435c95a75e21929966c05fdc0c4a66b6aa (diff)
downloadbcm5719-llvm-5841e9af1dff8bfdf22ad9716ad9d0ae8d73dbd6.tar.gz
bcm5719-llvm-5841e9af1dff8bfdf22ad9716ad9d0ae8d73dbd6.zip
DebugInfo: Move LLE enum handling to .def to match RLE handling
llvm-svn: 374122
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/BinaryFormat/Dwarf.cpp11
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp2
2 files changed, 12 insertions, 1 deletions
diff --git a/llvm/lib/BinaryFormat/Dwarf.cpp b/llvm/lib/BinaryFormat/Dwarf.cpp
index d096f73f1cf..cb92f80318e 100644
--- a/llvm/lib/BinaryFormat/Dwarf.cpp
+++ b/llvm/lib/BinaryFormat/Dwarf.cpp
@@ -472,6 +472,17 @@ StringRef llvm::dwarf::RangeListEncodingString(unsigned Encoding) {
}
}
+StringRef llvm::dwarf::LocListEncodingString(unsigned Encoding) {
+ switch (Encoding) {
+ default:
+ return StringRef();
+#define HANDLE_DW_LLE(ID, NAME) \
+ case DW_LLE_##NAME: \
+ return "DW_LLE_" #NAME;
+#include "llvm/BinaryFormat/Dwarf.def"
+ }
+}
+
StringRef llvm::dwarf::CallFrameString(unsigned Encoding,
Triple::ArchType Arch) {
assert(Arch != llvm::Triple::ArchType::UnknownArch);
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
index f25431321bb..a5f79f86852 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
@@ -143,7 +143,7 @@ DWARFDebugLoclists::parseOneLocationList(const DataExtractor &Data,
DataExtractor::Cursor C(*Offset);
// dwarf::DW_LLE_end_of_list_entry is 0 and indicates the end of the list.
- while (auto Kind = static_cast<dwarf::LocationListEntry>(Data.getU8(C))) {
+ while (auto Kind = static_cast<dwarf::LoclistEntries>(Data.getU8(C))) {
Entry E;
E.Kind = Kind;
switch (Kind) {
OpenPOWER on IntegriCloud