From: Chad Rosier Date: Fri, 19 Oct 2012 20:35:42 +0000 (+0000) Subject: [ms-inline asm] Add a MCAsmParserSemaCallback to the TargetAsmParser. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a05864b489235992f6f98b1a2ac500d61222cdb;p=platform%2Fupstream%2Fllvm.git [ms-inline asm] Add a MCAsmParserSemaCallback to the TargetAsmParser. llvm-svn: 166308 --- diff --git a/llvm/include/llvm/MC/MCTargetAsmParser.h b/llvm/include/llvm/MC/MCTargetAsmParser.h index a1e5a55..05537f9 100644 --- a/llvm/include/llvm/MC/MCTargetAsmParser.h +++ b/llvm/include/llvm/MC/MCTargetAsmParser.h @@ -44,6 +44,10 @@ protected: // Can only create subclasses. /// ParsingInlineAsm - Are we parsing ms-style inline assembly? bool ParsingInlineAsm; + /// SemaCallback - The Sema callback implementation. Must be set when parsing + /// ms-style inline assembly. + MCAsmParserSemaCallback *SemaCallback; + public: virtual ~MCTargetAsmParser(); @@ -53,6 +57,10 @@ public: bool isParsingInlineAsm () { return ParsingInlineAsm; } void setParsingInlineAsm (bool Value) { ParsingInlineAsm = Value; } + void setSemaCallback(MCAsmParserSemaCallback *Callback) { + SemaCallback = Callback; + } + virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) = 0;