From: Simon Pilgrim Date: Fri, 29 Sep 2017 11:42:05 +0000 (+0000) Subject: Fix Wmismatched-tags warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de1b835067477a7b06836bdf9da667397ceaffe5;p=llvm Fix Wmismatched-tags warning. InlineAsmIdentifierInfo was declared a class in some places and a class in others. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314508 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h index dcaf974356b..8fa5f94d1fd 100644 --- a/include/llvm/MC/MCParser/MCAsmParser.h +++ b/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;