aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetAsmInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Target/TargetAsmInfo.h')
-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 89cb5ae692..dc5d941942 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;
}
};