Emit a symbol table entry for each function we output to the ELF file. This
authorChris Lattner <sabre@nondot.org>
Mon, 11 Jul 2005 06:17:35 +0000 (06:17 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Jul 2005 06:17:35 +0000 (06:17 +0000)
commit5fe7b6e2be1de7e77c183e221641387eab187f94
treedd6fa3afa694f17a9f8d1ad39c5f0d870e9584de
parentf0cf1b7e5f7b621c5271cdcdfda598fb5eedf50a
Emit a symbol table entry for each function we output to the ELF file.  This
allows objdump to know which function we are emitting to:

00000000 <foo>:     <----
   0:   b8 01 00 00 00          mov    $0x1,%eax
   5:   03 44 24 04             add    0x4(%esp,1),%eax
   9:   c3                      ret

... and allows .o files to be useful for linking :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22378 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/ELFWriter.cpp