return Ret;
}
+// getSpelling - Get the spelling of the AsmTok token.
static StringRef getSpelling(Sema &SemaRef, Token AsmTok) {
StringRef Asm;
SmallString<512> TokenBuf;
return Asm;
}
+// Determine if we should bail on this MSAsm instruction.
static bool bailOnMSAsm(std::vector<StringRef> Piece) {
for (unsigned i = 0, e = Piece.size(); i != e; ++i)
if (isMSAsmKeyword(Piece[i]))
return false;
}
+// Determine if we should bail on this MSAsm block.
static bool bailOnMSAsm(std::vector<std::vector<StringRef> > Pieces) {
for (unsigned i = 0, e = Pieces.size(); i != e; ++i)
if (bailOnMSAsm(Pieces[i]))
return false;
}
+// Determine if this is a simple MSAsm instruction.
static bool isSimpleMSAsm(std::vector<StringRef> &Pieces,
const TargetInfo &TI) {
if (isMSAsmKeyword(Pieces[0]))
return true;
}
+// Determine if this is a simple MSAsm block.
static bool isSimpleMSAsm(std::vector<std::vector<StringRef> > Pieces,
const TargetInfo &TI) {
for (unsigned i = 0, e = Pieces.size(); i != e; ++i)
return true;
}
-// Break the AsmSting into pieces.
+// Break the AsmSting into pieces (i.e., mnemonic and operands).
static void buildMSAsmPieces(StringRef Asm, std::vector<StringRef> &Pieces) {
std::pair<StringRef,StringRef> Split = Asm.split(' ');