diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-12-04 17:20:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-12-04 17:20:04 +0000 |
commit | ad07b5d65e996433339a55ea44608c49b90f7662 (patch) | |
tree | 949e4968091e8b2b54c8c84480bae24846e9887a /llvm/lib/DebugInfo | |
parent | 541841e3655803c1356cbd82b78aae15e494551d (diff) | |
download | bcm5719-llvm-ad07b5d65e996433339a55ea44608c49b90f7662.tar.gz bcm5719-llvm-ad07b5d65e996433339a55ea44608c49b90f7662.zip |
[llvm-dwp] Retrieve the DWOID from the CU for the cu_index entry
llvm-svn: 254731
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp index a11b00a926d..3dc58423df6 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp @@ -261,6 +261,12 @@ DWARFFormValue::skipValue(DataExtractor debug_info_data, uint32_t* offset_ptr, bool DWARFFormValue::skipValue(uint16_t form, DataExtractor debug_info_data, uint32_t *offset_ptr, const DWARFUnit *cu) { + return skipValue(form, debug_info_data, offset_ptr, cu->getVersion(), + cu->getAddressByteSize()); +} +bool DWARFFormValue::skipValue(uint16_t form, DataExtractor debug_info_data, + uint32_t *offset_ptr, uint16_t Version, + uint8_t AddrSize) { bool indirect = false; do { switch (form) { @@ -295,10 +301,10 @@ DWARFFormValue::skipValue(uint16_t form, DataExtractor debug_info_data, // Compile unit address sized values case DW_FORM_addr: - *offset_ptr += cu->getAddressByteSize(); + *offset_ptr += AddrSize; return true; case DW_FORM_ref_addr: - *offset_ptr += getRefAddrSize(cu->getAddressByteSize(), cu->getVersion()); + *offset_ptr += getRefAddrSize(AddrSize, Version); return true; // 0 byte values - implied from the form. |