diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-04 00:31:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-04 00:31:13 +0000 |
commit | 1048e75fb9f76233152e3848cef65c18d6d39e03 (patch) | |
tree | c3d24efa5e4c7cb60f071a9966b5dbaa13807198 /llvm/lib/MC/MCAsmInfoDarwin.cpp | |
parent | ce18d7ebb5e17df724c1e0289c9897b0c717a691 (diff) | |
download | bcm5719-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.cpp | 3 |
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. |