summaryrefslogtreecommitdiff
path: root/lib/MC/MCAsmInfoDarwin.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-12-04 00:31:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-12-04 00:31:13 +0000
commit767b1be3900bdc693aa0ad3e554ba034845f67f7 (patch)
treed3d76fda6dbf4315192bf1d611eee5cad2a56296 /lib/MC/MCAsmInfoDarwin.cpp
parentceab50198ee0d1aa2468d868111e3cf7c0c56ebd (diff)
downloadllvm-767b1be3900bdc693aa0ad3e554ba034845f67f7.tar.gz
llvm-767b1be3900bdc693aa0ad3e554ba034845f67f7.tar.bz2
llvm-767b1be3900bdc693aa0ad3e554ba034845f67f7.tar.xz
Next step: Only pad debug_line when the target is darwin. Add a FIXME to avoid
doing that if the target is darwin10 or newer. This fixes *) Direct object emission was producing objects without the workaround on darwin9. *) Assembly printing was producing objects with the workaround on linux. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmInfoDarwin.cpp')
-rw-r--r--lib/MC/MCAsmInfoDarwin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MC/MCAsmInfoDarwin.cpp b/lib/MC/MCAsmInfoDarwin.cpp
index fd155135df..1147f02a59 100644
--- a/lib/MC/MCAsmInfoDarwin.cpp
+++ b/lib/MC/MCAsmInfoDarwin.cpp
@@ -37,6 +37,9 @@ MCAsmInfoDarwin::MCAsmInfoDarwin() {
HasMachoZeroFillDirective = true; // Uses .zerofill
HasMachoTBSSDirective = true; // Uses .tbss
HasStaticCtorDtorReferenceInStaticMode = true;
+
+ // FIXME: Darwin 10 and newer don't need this.
+ LinkerRequiresNonEmptyDwarfLines = true;
HiddenVisibilityAttr = MCSA_PrivateExtern;
// Doesn't support protected visibility.