1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

fix some predicates

llvm-svn: 76999
This commit is contained in:
Chris Lattner 2009-07-24 20:27:11 +00:00
parent 89b6f54999
commit 50d9b68935
2 changed files with 5 additions and 6 deletions

View File

@ -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{

View File

@ -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;