OSDN Git Service

MC/Mach-O x86_64: Switch to using fragment atom symbol.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 11 May 2010 17:22:50 +0000 (17:22 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 11 May 2010 17:22:50 +0000 (17:22 +0000)
commit651804c3d63a05f72221a6d133e5b344e6aaa093
tree68390c5775fef2161d57ae0ca425ba28b630b93b
parentc9d0c4e801f2bb1139423ea1606ed504b510abc1
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