diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-10-18 07:13:32 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-10-18 07:13:32 +0000 |
commit | 742e6b8efda3b2c024ec6f26656e9b408bef445e (patch) | |
tree | ff28a1c448d8f7473c6a7a8274ae219d8b9210e5 /llvm/lib/DebugInfo/DWARFFormValue.cpp | |
parent | 153675b718f7f845547a57e4b83e7bb78f2f23dd (diff) | |
download | llvm-742e6b8efda3b2c024ec6f26656e9b408bef445e.zip llvm-742e6b8efda3b2c024ec6f26656e9b408bef445e.tar.gz llvm-742e6b8efda3b2c024ec6f26656e9b408bef445e.tar.bz2 |
[DebugInfo] Remove unneeded struct member and hide struct definition. No functionality change.
llvm-svn: 192954
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFFormValue.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARFFormValue.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp index 3867249..0dddb7eb 100644 --- a/llvm/lib/DebugInfo/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARFFormValue.cpp @@ -184,7 +184,6 @@ bool DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr, case DW_FORM_GNU_addr_index: case DW_FORM_GNU_str_index: Value.uval = data.getULEB128(offset_ptr); - Value.IsDWOIndex = true; break; default: return false; @@ -441,7 +440,7 @@ const char *DWARFFormValue::getAsCString(const DWARFUnit *CU) const { if (!CU) return NULL; uint32_t Offset = Value.uval; - if (Value.IsDWOIndex) { + if (Form == DW_FORM_GNU_str_index) { uint32_t StrOffset; if (!CU->getStringOffsetSectionItem(Offset, StrOffset)) return NULL; @@ -453,7 +452,7 @@ const char *DWARFFormValue::getAsCString(const DWARFUnit *CU) const { uint64_t DWARFFormValue::getAsAddress(const DWARFUnit *CU) const { if (!CU) return 0; - if (Value.IsDWOIndex) { + if (Form == DW_FORM_GNU_addr_index) { uint32_t Index = Value.uval; uint64_t Address; if (!CU->getAddrOffsetSectionItem(Index, Address)) |