[ms-inline asm] Hoist getNumClobbers into base class.
llvm-svn: 162711
This commit is contained in:
parent
d9fb09a91b
commit
fdba32c79f
|
|
@ -1443,6 +1443,8 @@ public:
|
||||||
|
|
||||||
//===--- Other ---===//
|
//===--- Other ---===//
|
||||||
|
|
||||||
|
unsigned getNumClobbers() const { return NumClobbers; }
|
||||||
|
|
||||||
static bool classof(const Stmt *T) {
|
static bool classof(const Stmt *T) {
|
||||||
return T->getStmtClass() == GCCAsmStmtClass ||
|
return T->getStmtClass() == GCCAsmStmtClass ||
|
||||||
T->getStmtClass() == MSAsmStmtClass;
|
T->getStmtClass() == MSAsmStmtClass;
|
||||||
|
|
@ -1643,7 +1645,6 @@ public:
|
||||||
/// This returns -1 if the operand name is invalid.
|
/// This returns -1 if the operand name is invalid.
|
||||||
int getNamedOperand(StringRef SymbolicName) const;
|
int getNamedOperand(StringRef SymbolicName) const;
|
||||||
|
|
||||||
unsigned getNumClobbers() const { return NumClobbers; }
|
|
||||||
StringLiteral *getClobberStringLiteral(unsigned i) { return Clobbers[i]; }
|
StringLiteral *getClobberStringLiteral(unsigned i) { return Clobbers[i]; }
|
||||||
const StringLiteral *getClobberStringLiteral(unsigned i) const {
|
const StringLiteral *getClobberStringLiteral(unsigned i) const {
|
||||||
return Clobbers[i];
|
return Clobbers[i];
|
||||||
|
|
@ -1720,7 +1721,6 @@ public:
|
||||||
|
|
||||||
//===--- Other ---===//
|
//===--- Other ---===//
|
||||||
|
|
||||||
unsigned getNumClobbers() const { return NumClobbers; }
|
|
||||||
StringRef getClobber(unsigned i) const { return Clobbers[i]; }
|
StringRef getClobber(unsigned i) const { return Clobbers[i]; }
|
||||||
|
|
||||||
SourceRange getSourceRange() const LLVM_READONLY {
|
SourceRange getSourceRange() const LLVM_READONLY {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue