From 1048e75fb9f76233152e3848cef65c18d6d39e03 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 4 Dec 2010 00:31:13 +0000 Subject: 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 --- llvm/lib/MC/MCAsmInfoDarwin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/MC/MCAsmInfoDarwin.cpp') 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. -- cgit v1.2.3