summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/MC/MCParser/MCAsmParser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCParser/MCAsmParser.h b/llvm/include/llvm/MC/MCParser/MCAsmParser.h
index dcaf974356b..8fa5f94d1fd 100644
--- a/llvm/include/llvm/MC/MCParser/MCAsmParser.h
+++ b/llvm/include/llvm/MC/MCParser/MCAsmParser.h
@@ -34,7 +34,8 @@ class MCStreamer;
class MCTargetAsmParser;
class SourceMgr;
-struct InlineAsmIdentifierInfo {
+class InlineAsmIdentifierInfo {
+public:
enum IdKind {
IK_Invalid, // Initial state. Unexpected after a successful parsing.
IK_Label, // Function/Label reference.
@@ -85,6 +86,7 @@ struct InlineAsmIdentifierInfo {
Var.Length = size / type;
}
InlineAsmIdentifierInfo() : Kind(IK_Invalid) {}
+
private:
// Discrimint using the current kind
IdKind Kind;
OpenPOWER on IntegriCloud