diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-05-12 00:38:17 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-05-12 00:38:17 +0000 |
commit | a5f1d57f65ae601ec181c0f4e36cf0df5e8d79d8 (patch) | |
tree | 99cbdd963a1c49327eda3dd44b4ee76b3d797bd9 /include/llvm | |
parent | 85f4fdaed4fcc6050499579152c45fde679213d3 (diff) | |
download | external_llvm-a5f1d57f65ae601ec181c0f4e36cf0df5e8d79d8.zip external_llvm-a5f1d57f65ae601ec181c0f4e36cf0df5e8d79d8.tar.gz external_llvm-a5f1d57f65ae601ec181c0f4e36cf0df5e8d79d8.tar.bz2 |
MC/Mach-O/x86_64: Add a new hook for checking whether a particular section can
be diced into atoms, and adjust getAtom() to take this into account.
- This fixes relocations to symbols in fixed size literal sections, for
example.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/TargetAsmBackend.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h index f350ecc..b390ca5 100644 --- a/include/llvm/Target/TargetAsmBackend.h +++ b/include/llvm/Target/TargetAsmBackend.h @@ -90,6 +90,14 @@ public: return false; } + /// isSectionAtomizable - Check whether the given section can be split into + /// atoms. + /// + /// \see MCAssembler::isSymbolLinkerVisible(). + virtual bool isSectionAtomizable(const MCSection &Section) const { + return true; + } + /// isVirtualSection - Check whether the given section is "virtual", that is /// has no actual object file contents. virtual bool isVirtualSection(const MCSection &Section) const = 0; |