Output .size directives to tell the assembler the size of each function.
authorChris Lattner <sabre@nondot.org>
Mon, 11 Jul 2005 06:29:14 +0000 (06:29 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Jul 2005 06:29:14 +0000 (06:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22381 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ATTAsmPrinter.cpp

index 05dff4094f2dc078f470b9d790e765e2337233f3..21069905a65575dc484b64ba2c689b314a372830 100755 (executable)
@@ -53,6 +53,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
       printMachineInstruction(II);
     }
   }
+  O << "\t.size " << CurrentFnName << ", .-" << CurrentFnName << "\n";
 
   // We didn't modify anything.
   return false;