From ffccd923101ae177c1a2c407618d8f03a312d69b 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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158957 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/MC/MCAsmInfo.cpp | 2 +- lib/MC/MCAsmInfoDarwin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/MC') diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index d9c1d51..beb20e8 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/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/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp index 73ef7ba..7c271a9 100644 --- a/lib/MC/MCAsmInfoDarwin.cpp +++ b/lib/MC/MCAsmInfoDarwin.cpp @@ -60,6 +60,6 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() { HasSymbolResolver = true; DwarfRequiresRelocationForSectionOffset = false; - DwarfUsesLabelOffsetForRanges = false; + DwarfUsesRelocationsAcrossSections = false; DwarfUsesRelocationsForStringPool = false; } -- cgit v1.1