summaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-09-02 16:43:44 +0000
committerDevang Patel <dpatel@apple.com>2010-09-02 16:43:44 +0000
commitb1fcfbe89bd155fb88485b2a3a995adba3994003 (patch)
treeb06316dac691b7b50d6919d74bef4ea1051b7cac /lib/MC
parent5a0fabae5a1792d20df23b6cbd573a9121637d12 (diff)
downloadllvm-b1fcfbe89bd155fb88485b2a3a995adba3994003.tar.gz
llvm-b1fcfbe89bd155fb88485b2a3a995adba3994003.tar.bz2
llvm-b1fcfbe89bd155fb88485b2a3a995adba3994003.tar.xz
Fix .debug_range for linux. Patch by Krister Wombell.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCAsmInfo.cpp1
-rw-r--r--lib/MC/MCAsmInfoDarwin.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp
index b859825d66..670b2e9b29 100644
--- a/lib/MC/MCAsmInfo.cpp
+++ b/lib/MC/MCAsmInfo.cpp
@@ -70,6 +70,7 @@ MCAsmInfo::MCAsmInfo() {
DwarfUsesInlineInfoSection = false;
DwarfUsesAbsoluteLabelForStmtList = true;
DwarfSectionOffsetDirective = 0;
+ DwarfUsesLabelOffsetForRanges = true;
HasMicrosoftFastStdCallMangling = false;
AsmTransCBE = 0;
diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp
index 4856def260..e0e261a63c 100644
--- a/lib/MC/MCAsmInfoDarwin.cpp
+++ b/lib/MC/MCAsmInfoDarwin.cpp
@@ -46,5 +46,6 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
HasNoDeadStrip = true;
DwarfUsesAbsoluteLabelForStmtList = false;
+ DwarfUsesLabelOffsetForRanges = false;
}