diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 03:18:15 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 03:18:15 +0000 |
commit | 8ad0dccbf2f0c5ecf9fdad93ac0207f6eaabaa1b (patch) | |
tree | 3b9769d9f83220508afa39c90ae609d36ee53e72 /include/llvm/MC/MCAssembler.h | |
parent | 939f8d7ca23b95acdd5d1e71a7579ee8d33e7fd6 (diff) | |
download | external_llvm-8ad0dccbf2f0c5ecf9fdad93ac0207f6eaabaa1b.zip external_llvm-8ad0dccbf2f0c5ecf9fdad93ac0207f6eaabaa1b.tar.gz external_llvm-8ad0dccbf2f0c5ecf9fdad93ac0207f6eaabaa1b.tar.bz2 |
MC/Mach-O/x86_64: Add getAtom[ForAddress].
- These find the defining symbol which identifies the containing atom for a symbol or address. They are currently very slow, but will be eliminated eventually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCAssembler.h')
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 620b4f4..4a2a8bf 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -636,6 +636,19 @@ private: // FIXME: Make protected once we factor out object writer classes. public: + /// Find the symbol which defines the atom containing given address, inside + /// the given section, or null if there is no such symbol. + // + // FIXME: Eliminate this, it is very slow. + const MCSymbolData *getAtomForAddress(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: Eliminate this, it is very slow. + const MCSymbolData *getAtom(const MCSymbolData *Symbol) const; + /// Check whether a particular symbol is visible to the linker and is required /// in the symbol table, or whether it can be discarded by the assembler. This /// also effects whether the assembler treats the label as potentially |