diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-04-30 05:54:22 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-04-30 05:54:22 +0000 |
commit | 85c07007ea6518ef178bf94fc5d3c142718e5d9a (patch) | |
tree | 43b09ab2b6f5a40cfe08a2a403a2e72ad023dabb /llvm/lib/TableGen/Record.cpp | |
parent | 9ed595e41d26beb92e62aa8967b1046fd2f1d8c8 (diff) | |
download | bcm5719-llvm-85c07007ea6518ef178bf94fc5d3c142718e5d9a.tar.gz bcm5719-llvm-85c07007ea6518ef178bf94fc5d3c142718e5d9a.zip |
[TableGen] Cleanup formatting by moving operators from beginning of line to end of previous line. NFC
llvm-svn: 236206
Diffstat (limited to 'llvm/lib/TableGen/Record.cpp')
-rw-r--r-- | llvm/lib/TableGen/Record.cpp | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 58f2f07b0b0..089f380f1f9 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp @@ -1114,9 +1114,9 @@ Init *TernOpInit::Fold(Record *CurRec, MultiClass *CurMultiClass) const { VarInit *RHSv = dyn_cast<VarInit>(RHS); StringInit *RHSs = dyn_cast<StringInit>(RHS); - if ((LHSd && MHSd && RHSd) - || (LHSv && MHSv && RHSv) - || (LHSs && MHSs && RHSs)) { + if ((LHSd && MHSd && RHSd) || + (LHSv && MHSv && RHSv) || + (LHSs && MHSs && RHSs)) { if (RHSd) { Record *Val = RHSd->getDef(); if (LHSd->getAsString() == RHSd->getAsString()) { @@ -1214,9 +1214,9 @@ std::string TernOpInit::getAsString() const { case SUBST: Result = "!subst"; break; case FOREACH: Result = "!foreach"; break; case IF: Result = "!if"; break; - } - return Result + "(" + LHS->getAsString() + ", " + MHS->getAsString() + ", " - + RHS->getAsString() + ")"; + } + return Result + "(" + LHS->getAsString() + ", " + MHS->getAsString() + ", " + + RHS->getAsString() + ")"; } RecTy *TypedInit::getFieldType(const std::string &FieldName) const { @@ -1663,14 +1663,13 @@ void Record::resolveReferencesTo(const RecordVal *RV) { continue; if (Init *V = Values[i].getValue()) if (Values[i].setValue(V->resolveReferences(*this, RV))) - PrintFatalError(getLoc(), "Invalid value is found when setting '" - + Values[i].getNameInitAsString() - + "' after resolving references" - + (RV ? " against '" + RV->getNameInitAsString() - + "' of (" - + RV->getValue()->getAsUnquotedString() + ")" - : "") - + "\n"); + PrintFatalError(getLoc(), "Invalid value is found when setting '" + + Values[i].getNameInitAsString() + + "' after resolving references" + + (RV ? " against '" + RV->getNameInitAsString() + + "' of (" + RV->getValue()->getAsUnquotedString() + + ")" + : "") + "\n"); } Init *OldName = getNameInit(); Init *NewName = Name->resolveReferences(*this, RV); |