Reformat (and remove some tabs) to make debugging this code a

little easier to step through.

llvm-svn: 228746
This commit is contained in:
Eric Christopher 2015-02-10 21:15:06 +00:00
parent 7f53bd5b8d
commit f3e79e8714
1 changed files with 7 additions and 4 deletions

View File

@ -73,7 +73,7 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str,
unsigned multipleAlternativeCount = Str.count('|') + 1;
unsigned multipleAlternativeIndex = 0;
ConstraintCodeVector *pCodes = &Codes;
// Initialize
isMultipleAlternative = (multipleAlternativeCount > 1 ? true : false);
if (isMultipleAlternative) {
@ -99,12 +99,12 @@ bool InlineAsm::ConstraintInfo::Parse(StringRef Str,
++I;
Type = isOutput;
}
if (*I == '*') {
isIndirect = true;
++I;
}
if (I == E) return true; // Just a prefix, like "==" or "~".
// Parse the modifiers.
@ -228,7 +228,10 @@ InlineAsm::ParseConstraints(StringRef Constraints) {
I = ConstraintEnd;
if (I != E) {
++I;
if (I == E) { Result.clear(); break; } // don't allow "xyz,"
if (I == E) {
Result.clear();
break;
} // don't allow "xyz,"
}
}