diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-02-10 21:15:06 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-02-10 21:15:06 +0000 |
| commit | f3e79e8714e1b7f04bbe4e079accb1d5fb8e3806 (patch) | |
| tree | 42766be41fd0dfbc65afd06185e3f51bfbbd49a3 /llvm | |
| parent | 7f53bd5b8d2cec267dc84d391d1b06195c0466ef (diff) | |
| download | bcm5719-llvm-f3e79e8714e1b7f04bbe4e079accb1d5fb8e3806.tar.gz bcm5719-llvm-f3e79e8714e1b7f04bbe4e079accb1d5fb8e3806.zip | |
Reformat (and remove some tabs) to make debugging this code a
little easier to step through.
llvm-svn: 228746
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/IR/InlineAsm.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/lib/IR/InlineAsm.cpp b/llvm/lib/IR/InlineAsm.cpp index 16d874f32fc..5b73561c503 100644 --- a/llvm/lib/IR/InlineAsm.cpp +++ b/llvm/lib/IR/InlineAsm.cpp @@ -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," } } |

