[ms-inline asm] Default to the 'm' constraint. This matches the behavior of the

MSVC compiler.

llvm-svn: 165174
This commit is contained in:
Chad Rosier 2012-10-03 22:18:38 +00:00
parent 271623f8ae
commit bd5974e7ae
1 changed files with 3 additions and 3 deletions

View File

@ -1728,7 +1728,7 @@ static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
<< " case CVT_Reg:\n"
<< " case CVT_Tied:\n"
<< " MapAndConstraints.push_back(std::make_pair(NumMCOperands,"
<< "\"r\"));\n"
<< "\"m\"));\n"
<< " ++NumMCOperands;\n"
<< " break;\n";
@ -1826,7 +1826,7 @@ static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
// Add a handler for the operand number lookup.
OpOS << " case " << Name << ":\n"
<< " MapAndConstraints.push_back(std::make_pair(NumMCOperands"
<< ",\"r\"));\n"
<< ",\"m\"));\n"
<< " NumMCOperands += " << OpInfo.MINumOperands << ";\n"
<< " break;\n";
break;
@ -1896,7 +1896,7 @@ static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
OpOS << " case " << Name << ":\n"
<< " MapAndConstraints.push_back(std::make_pair(NumMCOperands"
<< ",\"r\"));\n"
<< ",\"m\"));\n"
<< " ++NumMCOperands;\n"
<< " break;\n";
}