summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-01-17 03:00:04 +0000
committerEric Christopher <echristo@gmail.com>2013-01-17 03:00:04 +0000
commit4c7765f166d972d56c7c0faff08218241489d829 (patch)
treef848a2a3c49867e282d22fb5626db6646525ff31 /llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
parent18266171333607c18ae79c3fadffb7af45c483fd (diff)
downloadbcm5719-llvm-4c7765f166d972d56c7c0faff08218241489d829.tar.gz
bcm5719-llvm-4c7765f166d972d56c7c0faff08218241489d829.zip
Fix the assembly and dissassembly of DW_FORM_sec_offset. Found this by
changing both the string of the dwo_name to be correct and the type of the statement list. Testcases all around. llvm-svn: 172699
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
index bb118501c11..02b15d69043 100644
--- a/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
+++ b/llvm/lib/DebugInfo/DWARFDebugInfoEntry.cpp
@@ -203,11 +203,9 @@ bool DWARFDebugInfoEntryMinimal::extractFast(const DWARFCompileUnit *cu,
form = debug_info_data.getULEB128(&offset);
break;
+ // FIXME: 64-bit for DWARF64
case DW_FORM_sec_offset:
- if (cu->getAddressByteSize() == 4)
- debug_info_data.getU32(offset_ptr);
- else
- debug_info_data.getU64(offset_ptr);
+ debug_info_data.getU32(offset_ptr);
break;
default:
@@ -344,11 +342,9 @@ DWARFDebugInfoEntryMinimal::extract(const DWARFCompileUnit *cu,
form_is_indirect = true;
break;
+ // FIXME: 64-bit for DWARF64.
case DW_FORM_sec_offset:
- if (cu->getAddressByteSize() == 4)
- debug_info_data.getU32(offset_ptr);
- else
- debug_info_data.getU64(offset_ptr);
+ debug_info_data.getU32(offset_ptr);
break;
default:
OpenPOWER on IntegriCloud