summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2017-01-13 00:13:42 +0000
committerGreg Clayton <gclayton@apple.com>2017-01-13 00:13:42 +0000
commit0e62ee7d60f1d7bcf11358cfcc22758a452bc250 (patch)
tree9e5ddd155b559d1028118eb9d472bc6c2533aac2 /llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
parentf01c70fec02ea2c709daa55494f56ea54669dc7b (diff)
downloadbcm5719-llvm-0e62ee7d60f1d7bcf11358cfcc22758a452bc250.tar.gz
bcm5719-llvm-0e62ee7d60f1d7bcf11358cfcc22758a452bc250.zip
Add the ability to iterate across all attributes in a DIE.
Differential Revision: https://reviews.llvm.org/D28386 llvm-svn: 291861
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
index dc9310dc4e8..0bed1a1e99c 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
@@ -400,7 +400,9 @@ bool DWARFFormValue::extractValue(const DataExtractor &data,
Value.uval = data.getULEB128(offset_ptr);
break;
default:
- return false;
+ // DWARFFormValue::skipValue() will have caught this and caused all
+ // DWARF DIEs to fail to be parsed, so this code is not be reachable.
+ llvm_unreachable("unsupported form");
}
} while (indirect);
OpenPOWER on IntegriCloud