summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-09-25 16:04:38 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-09-25 16:04:38 +0000
commit7fa72881d4cbf3b0cbd1fc42f5c8d8e5ea64b9db (patch)
tree26ae728fa9b07e785f90a84686ed1735f53f7c62 /lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
parent2fa270d825deb6daa4f60ba499d72ea9f4159819 (diff)
downloadbcm5719-llvm-7fa72881d4cbf3b0cbd1fc42f5c8d8e5ea64b9db.tar.gz
bcm5719-llvm-7fa72881d4cbf3b0cbd1fc42f5c8d8e5ea64b9db.zip
[Dwarf] Make dw_tag_t a typedef for llvm::dwarf::Tag instead of uint16_t.
Currently dw_tag_t is a typedef for uint16_t. This patch changes makes dw_tag_t a typedef for llvm::dwarf::Tag. This enables us to use the full power of the DWARF utilities in LLVM without having to do the cast every time. With this approach, we only have to do the cast when reading the ULEB value. Differential revision: https://reviews.llvm.org/D68005 llvm-svn: 372891
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
index 8b2ae12b4bb..033105efdc5 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
@@ -30,7 +30,7 @@ dw_tag_t DWARFBaseDIE::Tag() const {
if (m_die)
return m_die->Tag();
else
- return 0;
+ return llvm::dwarf::DW_TAG_null;
}
const char *DWARFBaseDIE::GetTagAsCString() const {
OpenPOWER on IntegriCloud