llvm-mc/Mach-O: Improve symbol table support:
authorDaniel Dunbar <daniel@zuster.org>
Sat, 22 Aug 2009 11:41:10 +0000 (11:41 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 22 Aug 2009 11:41:10 +0000 (11:41 +0000)
commit3edd9bb7a3da8526eb2f4a5dae2962a987d3d566
treee8c2a4ed790801bb1a2f09f4bb5c158b517d1b0d
parentf3d2ef0c9712381a105118336975adcfbf733db0
llvm-mc/Mach-O: Improve symbol table support:
 - Honor .globl.

 - Set symbol type and section correctly ('nm' now works), and order symbols
   appropriately.

 - Take care to the string table so that the .o matches 'as' exactly (for ease
   of testing).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79740 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAssembler.h
include/llvm/MC/MCSymbol.h
lib/MC/MCAssembler.cpp
lib/MC/MCMachOStreamer.cpp
test/MC/MachO/symbols-1.s [new file with mode: 0644]