summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
diff options
context:
space:
mode:
authorPaul Robinson <paul.robinson@sony.com>2017-06-27 15:40:18 +0000
committerPaul Robinson <paul.robinson@sony.com>2017-06-27 15:40:18 +0000
commitd66ee0f9a75e37a2836bd5e48154e8ae1958269c (patch)
treef60bd9b9939075c85690465adda0de944ff0e1f0 /llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
parent81cbb0c2374d5c49037e818c026f9cdecacfe481 (diff)
downloadbcm5719-llvm-d66ee0f9a75e37a2836bd5e48154e8ae1958269c.tar.gz
bcm5719-llvm-d66ee0f9a75e37a2836bd5e48154e8ae1958269c.zip
[DWARF] NFC: Make string-offset handling more like address-table handling;
do the indirection and relocation all in the same method. llvm-svn: 306418
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
index 861114bde1f..0075ef1a8a0 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp
@@ -576,7 +576,6 @@ Optional<const char *> DWARFFormValue::getAsCString() const {
uint64_t StrOffset;
if (!U->getStringOffsetSectionItem(Offset, StrOffset))
return None;
- StrOffset += U->getStringOffsetSectionRelocation(Offset);
Offset = StrOffset;
}
if (const char *Str = U->getStringExtractor().getCStr(&Offset)) {
OpenPOWER on IntegriCloud