forked from OSchip/llvm-project
[ms-inline asm] Add the isParsingInlineAsm() function to the MCAsmTargetParser.
llvm-svn: 166292
This commit is contained in:
parent
f1088a37cb
commit
75f0b2f2bd
|
@ -41,12 +41,18 @@ protected: // Can only create subclasses.
|
|||
/// AvailableFeatures - The current set of available features.
|
||||
unsigned AvailableFeatures;
|
||||
|
||||
/// ParsingInlineAsm - Are we parsing ms-style inline assembly?
|
||||
bool ParsingInlineAsm;
|
||||
|
||||
public:
|
||||
virtual ~MCTargetAsmParser();
|
||||
|
||||
unsigned getAvailableFeatures() const { return AvailableFeatures; }
|
||||
void setAvailableFeatures(unsigned Value) { AvailableFeatures = Value; }
|
||||
|
||||
bool isParsingInlineAsm () { return ParsingInlineAsm; }
|
||||
void setParsingInlineAsm (bool Value) { ParsingInlineAsm = Value; }
|
||||
|
||||
virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc,
|
||||
SMLoc &EndLoc) = 0;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
using namespace llvm;
|
||||
|
||||
MCTargetAsmParser::MCTargetAsmParser()
|
||||
: AvailableFeatures(0)
|
||||
: AvailableFeatures(0), ParsingInlineAsm(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue