diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 03:18:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-19 03:18:09 +0000 |
commit | 238698566311e9dba4092dfa6c0bfe253279702e (patch) | |
tree | 71c78de91d210b0e659bb3654608d45c08720ff6 /include | |
parent | 9bdda3a75ebf94bb9259764af1b6c2b383a1fa63 (diff) | |
download | llvm-238698566311e9dba4092dfa6c0bfe253279702e.tar.gz llvm-238698566311e9dba4092dfa6c0bfe253279702e.tar.bz2 llvm-238698566311e9dba4092dfa6c0bfe253279702e.tar.xz |
MC/Mach-O: Factor out isSymbolLinkerVisible method; "linker visible" is a made up term to refer to non-temporary labels + temporary labels in sections-which-require symbols. For Darwin, it corresponds to symbols which effectively define an atom.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCAssembler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAssembler.h b/include/llvm/MC/MCAssembler.h index 1d8051fdb0..620b4f4ec2 100644 --- a/include/llvm/MC/MCAssembler.h +++ b/include/llvm/MC/MCAssembler.h @@ -636,6 +636,12 @@ private: // FIXME: Make protected once we factor out object writer classes. public: + /// 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 + /// defining a separate atom. + bool isSymbolLinkerVisible(const MCSymbolData *SD) const; + /// Evaluate a fixup to a relocatable expression and the value which should be /// placed into the fixup. /// |