summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-01-17 02:59:59 +0000
committerEric Christopher <echristo@gmail.com>2013-01-17 02:59:59 +0000
commit18266171333607c18ae79c3fadffb7af45c483fd (patch)
tree369967df8cc1abaca0cca5a28d6e80ea66d6de9d /llvm/lib/DebugInfo
parentaf64e141d3724b58d5feac47ff4934be6c8e5209 (diff)
downloadbcm5719-llvm-18266171333607c18ae79c3fadffb7af45c483fd.tar.gz
bcm5719-llvm-18266171333607c18ae79c3fadffb7af45c483fd.zip
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. llvm-svn: 172698
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARFFormValue.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/DebugInfo/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARFFormValue.cpp
index d1bcf96f7fe..ea59c1d780d 100644
--- a/llvm/lib/DebugInfo/DWARFFormValue.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud