diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-11 17:22:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-11 17:22:50 +0000 |
commit | 651804c3d63a05f72221a6d133e5b344e6aaa093 (patch) | |
tree | 68390c5775fef2161d57ae0ca425ba28b630b93b /include/llvm | |
parent | c9d0c4e801f2bb1139423ea1606ed504b510abc1 (diff) | |
download | external_llvm-651804c3d63a05f72221a6d133e5b344e6aaa093.zip external_llvm-651804c3d63a05f72221a6d133e5b344e6aaa093.tar.gz external_llvm-651804c3d63a05f72221a6d133e5b344e6aaa093.tar.bz2 |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index cc891a8..11b1bfc 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -680,18 +680,8 @@ private: void FinishLayout(MCAsmLayout &Layout); public: - /// Find the symbol which defines the atom containing given address, inside - /// the given section, or null if there is no such symbol. - // - // FIXME-PERF: Eliminate this, it is very slow. - const MCSymbolData *getAtomForAddress(const MCAsmLayout &Layout, - const MCSectionData *Section, - uint64_t Address) const; - /// Find the symbol which defines the atom containing the given symbol, or /// null if there is no such symbol. - // - // FIXME-PERF: Eliminate this, it is very slow. const MCSymbolData *getAtom(const MCAsmLayout &Layout, const MCSymbolData *Symbol) const; |