diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-06-22 01:25:12 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-06-22 01:25:12 +0000 |
commit | 33da33676fe3026fb8e1b237e845698bff42ffb0 (patch) | |
tree | 4dcaa8f76cb2edcf5f37dffca08ae40c1bb3fd91 /llvm/lib/MC | |
parent | b8650f106a57891ce004996569f59dcce5b9982e (diff) | |
download | bcm5719-llvm-33da33676fe3026fb8e1b237e845698bff42ffb0.tar.gz bcm5719-llvm-33da33676fe3026fb8e1b237e845698bff42ffb0.zip |
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
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MCAsmInfo.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/MC/MCAsmInfoDarwin.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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; } |