summaryrefslogtreecommitdiff
path: root/include/llvm/MC/SectionKind.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-02 00:02:44 +0000
committerChris Lattner <sabre@nondot.org>2009-08-02 00:02:44 +0000
commit1ef9be28831ad2d0b16d9934dc65c98e17b429a7 (patch)
tree6fc238a615222c9631acb57c24993b0be18ad744 /include/llvm/MC/SectionKind.h
parent2798119ab4d7e0b42812b3acdf37821f40dee627 (diff)
downloadllvm-1ef9be28831ad2d0b16d9934dc65c98e17b429a7.tar.gz
llvm-1ef9be28831ad2d0b16d9934dc65c98e17b429a7.tar.bz2
llvm-1ef9be28831ad2d0b16d9934dc65c98e17b429a7.tar.xz
Make SectionKind::get() private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/SectionKind.h')
-rw-r--r--include/llvm/MC/SectionKind.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/SectionKind.h b/include/llvm/MC/SectionKind.h
index 8cb9b325c7..7841df80fa 100644
--- a/include/llvm/MC/SectionKind.h
+++ b/include/llvm/MC/SectionKind.h
@@ -170,12 +170,13 @@ public:
bool isReadOnlyWithRelLocal() const {
return K == ReadOnlyWithRelLocal;
}
-
+private:
static SectionKind get(Kind K) {
SectionKind Res;
Res.K = K;
return Res;
}
+public:
static SectionKind getMetadata() { return get(Metadata); }
static SectionKind getText() { return get(Text); }