[ms-inline asm] Add the helper function, isParseringInlineAsm(). To be used in a future commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chad Rosier 2012-10-16 20:16:20 +00:00
parent be6f884afc
commit c5ac87d067
2 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ public:
virtual bool Run(bool NoInitialTextSection, bool NoFinalize = false) = 0;
virtual void setParsingInlineAsm(bool V) = 0;
virtual bool isParsingInlineAsm() = 0;
/// ParseStatement - Parse the next statement.
virtual bool ParseStatement() = 0;

View File

@ -182,6 +182,7 @@ public:
bool ParseStatement();
void setParsingInlineAsm(bool V) { ParsingInlineAsm = V; }
bool isParsingInlineAsm() { return ParsingInlineAsm; }
unsigned getNumParsedOperands() { return ParsedOperands.size(); }
MCParsedAsmOperand &getParsedOperand(unsigned OpNum) {
assert (ParsedOperands.size() > OpNum);