mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-14 22:38:03 +00:00
fix some predicates
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d4960c3ca
commit
fbd3d4a5c3
@ -57,13 +57,11 @@ namespace llvm {
|
||||
|
||||
static inline bool isReadOnly(Kind K) {
|
||||
return (K == SectionKind::ROData ||
|
||||
K == SectionKind::DataRelRO ||
|
||||
K == SectionKind::DataRelROLocal ||
|
||||
K == SectionKind::RODataMergeConst ||
|
||||
K == SectionKind::RODataMergeStr);
|
||||
}
|
||||
|
||||
static inline bool isBSS(Kind K) {
|
||||
return K == SectionKind::BSS;
|
||||
}
|
||||
}
|
||||
|
||||
namespace SectionFlags {
|
||||
@ -601,7 +599,8 @@ namespace llvm {
|
||||
|
||||
/// getSpecialCasedSectionGlobals - Allow the target to completely override
|
||||
/// section assignment of a global.
|
||||
/// FIXME: ELIMINATE
|
||||
/// FIXME: ELIMINATE this by making PIC16 implement ADDRESS with
|
||||
/// getFlagsForNamedSection.
|
||||
virtual const Section *
|
||||
getSpecialCasedSectionGlobals(const GlobalValue *GV,
|
||||
SectionKind::Kind Kind) const{
|
||||
|
@ -341,7 +341,7 @@ TargetAsmInfo::SelectSectionForGlobal(const GlobalValue *GV,
|
||||
if (Kind == SectionKind::Text)
|
||||
return getTextSection();
|
||||
|
||||
if (isBSS(Kind))
|
||||
if (Kind == SectionKind::BSS)
|
||||
if (const Section *S = getBSSSection_())
|
||||
return S;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user