[llvm] r228746 - Reformat (and remove some tabs) to make debugging this code a
Eric Christopher
echristo at gmail.com
Tue Feb 10 13:15:06 PST 2015
Author: echristo
Date: Tue Feb 10 15:15:06 2015
New Revision: 228746
URL: http://llvm.org/viewvc/llvm-project?rev=228746&view=rev
Log:
Reformat (and remove some tabs) to make debugging this code a
little easier to step through.
Modified:
llvm/trunk/lib/IR/InlineAsm.cpp
Modified: llvm/trunk/lib/IR/InlineAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/InlineAsm.cpp?rev=228746&r1=228745&r2=228746&view=diff
==============================================================================
--- llvm/trunk/lib/IR/InlineAsm.cpp (original)
+++ llvm/trunk/lib/IR/InlineAsm.cpp Tue Feb 10 15:15:06 2015
@@ -73,7 +73,7 @@ bool InlineAsm::ConstraintInfo::Parse(St
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(St
++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 Co
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,"
}
}
More information about the llvm-commits
mailing list