diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-24 20:27:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-24 20:27:11 +0000 |
commit | fbd3d4a5c3738591b26a1a0374a8c0302f3ee991 (patch) | |
tree | e8bc70e3f97195aaccc6ac7793793e3154d84dcc | |
parent | 0d4960c3caf64a4d83a237eaa55228c25a87bf2b (diff) | |
download | external_llvm-fbd3d4a5c3738591b26a1a0374a8c0302f3ee991.zip external_llvm-fbd3d4a5c3738591b26a1a0374a8c0302f3ee991.tar.gz external_llvm-fbd3d4a5c3738591b26a1a0374a8c0302f3ee991.tar.bz2 |
fix some predicates
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76999 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 9 | ||||
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index 58955c8..fc044b8 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -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{ diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index b32be1d..3edbe93 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -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; |