[llvm-commits] [llvm] r40499 - /llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jul 25 15:28:16 PDT 2007
Author: evancheng
Date: Wed Jul 25 17:28:16 2007
New Revision: 40499
URL: http://llvm.org/viewvc/llvm-project?rev=40499&view=rev
Log:
Functions with LinkOnce and weak linkage still need to be aligned. Doh.
Modified:
llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp?rev=40499&r1=40498&r2=40499&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ATTAsmPrinter.cpp Wed Jul 25 17:28:16 2007
@@ -111,6 +111,7 @@
case Function::LinkOnceLinkage:
case Function::WeakLinkage:
if (Subtarget->isTargetDarwin()) {
+ EmitAlignment(4, F); // FIXME: This should be parameterized somewhere.
O << "\t.globl\t" << CurrentFnName << "\n";
O << "\t.weak_definition\t" << CurrentFnName << "\n";
} else if (Subtarget->isTargetCygMing()) {
More information about the llvm-commits
mailing list