summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit1048e75fb9f76233152e3848cef65c18d6d39e03 (patch)
treec3d24efa5e4c7cb60f071a9966b5dbaa13807198 /llvm/lib/MC/MCAsmInfoDarwin.cpp
parentce18d7ebb5e17df724c1e0289c9897b0c717a691 (diff)
downloadbcm5719-llvm-1048e75fb9f76233152e3848cef65c18d6d39e03.tar.gz
bcm5719-llvm-1048e75fb9f76233152e3848cef65c18d6d39e03.zip
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. llvm-svn: 120866
Diffstat (limited to 'llvm/lib/MC/MCAsmInfoDarwin.cpp')
-rw-r--r--llvm/lib/MC/MCAsmInfoDarwin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCAsmInfoDarwin.cpp b/llvm/lib/MC/MCAsmInfoDarwin.cpp
index fd155135df0..1147f02a596 100644
--- a/llvm/lib/MC/MCAsmInfoDarwin.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud