mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79078 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7d996d907f
commit
203b3e9e2a
@ -578,11 +578,11 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Kind.isMergeableConst()) {
|
if (Kind.isMergeableConst()) {
|
||||||
if (Kind.isMergeableConst4())
|
if (Kind.isMergeableConst4() && MergeableConst4Section)
|
||||||
return MergeableConst4Section;
|
return MergeableConst4Section;
|
||||||
if (Kind.isMergeableConst8())
|
if (Kind.isMergeableConst8() && MergeableConst8Section)
|
||||||
return MergeableConst8Section;
|
return MergeableConst8Section;
|
||||||
if (Kind.isMergeableConst16())
|
if (Kind.isMergeableConst16() && MergeableConst16Section)
|
||||||
return MergeableConst16Section;
|
return MergeableConst16Section;
|
||||||
return ReadOnlySection; // .const
|
return ReadOnlySection; // .const
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user