MC/Mach-O x86_64: Switch to using fragment atom symbol.
commitb136be81a362af36d7bf3411670061e722037e59
authorDaniel Dunbar <daniel@zuster.org>
Tue, 11 May 2010 17:22:50 +0000 (11 17:22 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 11 May 2010 17:22:50 +0000 (11 17:22 +0000)
tree68390c5775fef2161d57ae0ca425ba28b630b93b
parentf3f3e809ad1ad1d02557d2b45d867a2094cb3984
MC/Mach-O x86_64: Switch to using fragment atom symbol.
 - This eliminates getAtomForAddress() (which was a linear search) and
   simplifies getAtom().
 - This also fixes some correctness problems where local labels at the same
   address as non-local labels could be assigned to the wrong atom.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103480 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAssembler.h
lib/MC/MCAssembler.cpp
test/MC/MachO/darwin-x86_64-reloc.s