mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 21:11:36 +00:00
If ELF subtargets don't want to support 4/8/16-byte mergable sections, allow
them to null out the default section pointers. llvm-svn: 79078
This commit is contained in:
parent
3665e2058e
commit
2c1a96d901
@ -578,11 +578,11 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
||||
}
|
||||
|
||||
if (Kind.isMergeableConst()) {
|
||||
if (Kind.isMergeableConst4())
|
||||
if (Kind.isMergeableConst4() && MergeableConst4Section)
|
||||
return MergeableConst4Section;
|
||||
if (Kind.isMergeableConst8())
|
||||
if (Kind.isMergeableConst8() && MergeableConst8Section)
|
||||
return MergeableConst8Section;
|
||||
if (Kind.isMergeableConst16())
|
||||
if (Kind.isMergeableConst16() && MergeableConst16Section)
|
||||
return MergeableConst16Section;
|
||||
return ReadOnlySection; // .const
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user