projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed comment in header of Block Frequency Impl and added text for C++ mode.
[oota-llvm.git]
/
lib
/
DebugInfo
/
DWARFFormValue.cpp
diff --git
a/lib/DebugInfo/DWARFFormValue.cpp
b/lib/DebugInfo/DWARFFormValue.cpp
index 5f06f43d81c9ee5948d611eeb4a153ab96d0a84d..1a1cf2452cd1a36aaf896fefd481cee86be01638 100644
(file)
--- a/
lib/DebugInfo/DWARFFormValue.cpp
+++ b/
lib/DebugInfo/DWARFFormValue.cpp
@@
-126,9
+126,13
@@
DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr,
Value.uval = data.getU16(offset_ptr);
break;
case DW_FORM_data4:
Value.uval = data.getU16(offset_ptr);
break;
case DW_FORM_data4:
- case DW_FORM_ref4:
+ case DW_FORM_ref4: {
+ RelocAddrMap::const_iterator AI = cu->getRelocMap()->find(*offset_ptr);
Value.uval = data.getU32(offset_ptr);
Value.uval = data.getU32(offset_ptr);
+ if (AI != cu->getRelocMap()->end())
+ Value.uval += AI->second.second;
break;
break;
+ }
case DW_FORM_data8:
case DW_FORM_ref8:
Value.uval = data.getU64(offset_ptr);
case DW_FORM_data8:
case DW_FORM_ref8:
Value.uval = data.getU64(offset_ptr);