summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-12 00:38:17 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-12 00:38:17 +0000
commita5f1d57f65ae601ec181c0f4e36cf0df5e8d79d8 (patch)
tree99cbdd963a1c49327eda3dd44b4ee76b3d797bd9 /include
parent85f4fdaed4fcc6050499579152c45fde679213d3 (diff)
downloadllvm-a5f1d57f65ae601ec181c0f4e36cf0df5e8d79d8.tar.gz
llvm-a5f1d57f65ae601ec181c0f4e36cf0df5e8d79d8.tar.bz2
llvm-a5f1d57f65ae601ec181c0f4e36cf0df5e8d79d8.tar.xz
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')
-rw-r--r--include/llvm/Target/TargetAsmBackend.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetAsmBackend.h b/include/llvm/Target/TargetAsmBackend.h
index f350ecc410..b390ca54bb 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;