summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-07-11 06:29:14 +0000
committerChris Lattner <sabre@nondot.org>2005-07-11 06:29:14 +0000
commit9bdb1c38181aa633652d91c9e88b116e2927f6e1 (patch)
tree4809d4bcfd56e78dc899b4f462bbbdcee5ced8f5 /llvm
parent0d2f043c41abb0613ecbe0a052409a102a610fc1 (diff)
downloadbcm5719-llvm-9bdb1c38181aa633652d91c9e88b116e2927f6e1.tar.gz
bcm5719-llvm-9bdb1c38181aa633652d91c9e88b116e2927f6e1.zip
Output .size directives to tell the assembler the size of each function.
llvm-svn: 22381
Diffstat (limited to 'llvm')
-rwxr-xr-xllvm/lib/Target/X86/X86ATTAsmPrinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp b/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
index 05dff4094f2..21069905a65 100755
--- a/llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud