From 33da33676fe3026fb8e1b237e845698bff42ffb0 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Fri, 22 Jun 2012 01:25:12 +0000 Subject: Emit relocations for DW_AT_location entries on systems which need it. This is a recommit of r127757. Fixes PR9493. Patch by Paul Robinson! llvm-svn: 158957 --- llvm/lib/MC/MCAsmInfo.cpp | 2 +- llvm/lib/MC/MCAsmInfoDarwin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/MC') diff --git a/llvm/lib/MC/MCAsmInfo.cpp b/llvm/lib/MC/MCAsmInfo.cpp index d9c1d51d185..beb20e8f159 100644 --- a/llvm/lib/MC/MCAsmInfo.cpp +++ b/llvm/lib/MC/MCAsmInfo.cpp @@ -86,7 +86,7 @@ MCAsmInfo::MCAsmInfo() { DwarfUsesInlineInfoSection = false; DwarfRequiresRelocationForSectionOffset = true; DwarfSectionOffsetDirective = 0; - DwarfUsesLabelOffsetForRanges = true; + DwarfUsesRelocationsAcrossSections = true; DwarfUsesRelocationsForStringPool = true; DwarfRegNumForCFI = false; HasMicrosoftFastStdCallMangling = false; diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp index 73ef7ba0604..7c271a9e824 100644 --- a/llvm/lib/MC/MCAsmInfoDarwin.cpp +++ b/llvm/lib/MC/MCAsmInfoDarwin.cpp @@ -60,6 +60,6 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() { HasSymbolResolver = true; DwarfRequiresRelocationForSectionOffset = false; - DwarfUsesLabelOffsetForRanges = false; + DwarfUsesRelocationsAcrossSections = false; DwarfUsesRelocationsForStringPool = false; } -- cgit v1.2.3