mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
Honour relocation behaviour stuff for ro objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -20,6 +20,7 @@ namespace llvm {
|
||||
template<typename T> class SmallVectorImpl;
|
||||
|
||||
namespace Reloc {
|
||||
const unsigned None = 0;
|
||||
const unsigned Local = 1 << 0; ///< Local relocations are required
|
||||
const unsigned Global = 1 << 1; ///< Global relocations are required
|
||||
const unsigned LocalOrGlobal = Local | Global;
|
||||
|
||||
@@ -577,6 +577,12 @@ namespace llvm {
|
||||
virtual SectionKind::Kind
|
||||
SectionKindForGlobal(const GlobalValue *GV) const;
|
||||
|
||||
/// RelocBehaviour - Describes how relocations should be treated when
|
||||
/// selecting sections. Reloc::Global bit should be set if global
|
||||
/// relocations should force object to be placed in read-write
|
||||
/// sections. Reloc::Local bit should be set if local relocations should
|
||||
/// force object to be placed in read-write sections.
|
||||
virtual unsigned RelocBehaviour() const;
|
||||
|
||||
/// SectionFlagsForGlobal - This hook allows the target to select proper
|
||||
/// section flags either for given global or for section.
|
||||
|
||||
Reference in New Issue
Block a user