From: Chris Lattner Date: Mon, 11 Jul 2005 06:29:14 +0000 (+0000) Subject: Output .size directives to tell the assembler the size of each function. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c569d79a2a740ed98ccf5338bafb5342918f07d1;p=oota-llvm.git Output .size directives to tell the assembler the size of each function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22381 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp index 05dff4094f2..21069905a65 100755 --- a/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -53,6 +53,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { printMachineInstruction(II); } } + O << "\t.size " << CurrentFnName << ", .-" << CurrentFnName << "\n"; // We didn't modify anything. return false;