OSDN Git Service

[ms-inline asm] Add the helper function, isParseringInlineAsm(). To be used in a...
authorChad Rosier <mcrosier@apple.com>
Tue, 16 Oct 2012 20:16:20 +0000 (20:16 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 16 Oct 2012 20:16:20 +0000 (20:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166054 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCParser/MCAsmParser.h
lib/MC/MCParser/AsmParser.cpp

index 08758cd..52948f7 100644 (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;
index 0406ff8..a5d0666 100644 (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);