Permalink
Browse files

[ms-inline asm] Add a MCAsmParserSemaCallback to the TargetAsmParser.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166308 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
1 parent 6b283ea commit faf547053bc097be0e834efd241ccc023777ff38 Chad Rosier committed Oct 19, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 include/llvm/MC/MCTargetAsmParser.h
@@ -44,6 +44,10 @@ class MCTargetAsmParser : public MCAsmParserExtension {
/// 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 @@ class MCTargetAsmParser : public MCAsmParserExtension {
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;

0 comments on commit faf5470

Please sign in to comment.