mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
[DebugInfo] Remove unneeded struct member and hide struct definition. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192954 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user