From d66ee0f9a75e37a2836bd5e48154e8ae1958269c Mon Sep 17 00:00:00 2001 From: Paul Robinson Date: Tue, 27 Jun 2017 15:40:18 +0000 Subject: [DWARF] NFC: Make string-offset handling more like address-table handling; do the indirection and relocation all in the same method. llvm-svn: 306418 --- llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'llvm/lib/DebugInfo/DWARF/DWARFFormValue.cpp') 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 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)) { -- cgit v1.2.3