mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Provide convenient helpers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -45,6 +45,18 @@ namespace llvm {
|
||||
ThreadData, ///< Initialized TLS data objects
|
||||
ThreadBSS ///< Uninitialized TLS data objects
|
||||
};
|
||||
|
||||
static inline bool isReadOnly(Kind K) {
|
||||
return (K == SectionKind::ROData ||
|
||||
K == SectionKind::RODataMergeConst ||
|
||||
K == SectionKind::RODataMergeStr ||
|
||||
K == SectionKind::SmallROData);
|
||||
}
|
||||
|
||||
static inline bool isBSS(Kind K) {
|
||||
return (K == SectionKind::BSS ||
|
||||
K == SectionKind::SmallBSS);
|
||||
}
|
||||
}
|
||||
|
||||
namespace SectionFlags {
|
||||
|
Reference in New Issue
Block a user