aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-26 06:51:27 +0000
committerChris Lattner <sabre@nondot.org>2009-07-26 06:51:27 +0000
commit37939c910fe17eef328736b3c09b6cd262095a87 (patch)
treec8be1bf84403dce394fc8115e381e7565ae0669a /include
parent2ceb60a677065e08ec436dcb79a9d445e628a5c9 (diff)
downloadexternal_llvm-37939c910fe17eef328736b3c09b6cd262095a87.zip
external_llvm-37939c910fe17eef328736b3c09b6cd262095a87.tar.gz
external_llvm-37939c910fe17eef328736b3c09b6cd262095a87.tar.bz2
Make the kind actually be private.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetAsmInfo.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h
index 89cb5ae..dc5d941 100644
--- a/include/llvm/Target/TargetAsmInfo.h
+++ b/include/llvm/Target/TargetAsmInfo.h
@@ -124,10 +124,10 @@ namespace llvm {
};
- //private:
- Kind K : 8; // This is private.
+ private:
+ Kind K : 8;
- //public:
+ public:
bool isText() const {
return K == Text;
@@ -183,7 +183,8 @@ namespace llvm {
}
static SectionKind get(Kind K) {
- SectionKind Res = { K };
+ SectionKind Res;
+ Res.K = K;
return Res;
}
};