diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-17 02:59:59 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-17 02:59:59 +0000 |
commit | d96c72a14cf327af98cbc7d3491f7a2248f5137d (patch) | |
tree | 71a03bd8eb7e620222351ce81deadd62e44587ee /lib/DebugInfo | |
parent | 5ed625c3cff2511469e9b3c5131c29fd89ddd482 (diff) | |
download | external_llvm-d96c72a14cf327af98cbc7d3491f7a2248f5137d.zip external_llvm-d96c72a14cf327af98cbc7d3491f7a2248f5137d.tar.gz external_llvm-d96c72a14cf327af98cbc7d3491f7a2248f5137d.tar.bz2 |
Add the DW_AT_GNU_addr_base for the skeleton cu. Add support for
emitting the dwarf32 version of DW_FORM_sec_offset and correct
disassembler support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r-- | lib/DebugInfo/DWARFFormValue.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/DebugInfo/DWARFFormValue.cpp b/lib/DebugInfo/DWARFFormValue.cpp index d1bcf96..ea59c1d 100644 --- a/lib/DebugInfo/DWARFFormValue.cpp +++ b/lib/DebugInfo/DWARFFormValue.cpp @@ -173,10 +173,8 @@ DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr, indirect = true; break; case DW_FORM_sec_offset: - if (cu->getAddressByteSize() == 4) - Value.uval = data.getU32(offset_ptr); - else - Value.uval = data.getU64(offset_ptr); + // FIXME: This is 64-bit for DWARF64. + Value.uval = data.getU32(offset_ptr); break; case DW_FORM_flag_present: Value.uval = 1; |