Skip to content

Commit

Permalink
Put 'else' on same line as preceding curly brace per coding standards…
Browse files Browse the repository at this point in the history
…. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179993 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
topperc committed Apr 22, 2013
1 parent 007b40f commit efa703d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions lib/MC/MCParser/AsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2636,12 +2636,10 @@ bool AsmParser::ParseDirectiveLoc() {
Flags |= DWARF2_FLAG_IS_STMT;
else
return Error(Loc, "is_stmt value not 0 or 1");
}
else {
} else {
return Error(Loc, "is_stmt value not the constant value of 0 or 1");
}
}
else if (Name == "isa") {
} else if (Name == "isa") {
Loc = getTok().getLoc();
const MCExpr *Value;
if (parseExpression(Value))
Expand All @@ -2652,16 +2650,13 @@ bool AsmParser::ParseDirectiveLoc() {
if (Value < 0)
return Error(Loc, "isa number less than zero");
Isa = Value;
}
else {
} else {
return Error(Loc, "isa number not a constant value");
}
}
else if (Name == "discriminator") {
} else if (Name == "discriminator") {
if (parseAbsoluteExpression(Discriminator))
return true;
}
else {
} else {
return Error(Loc, "unknown sub-directive in '.loc' directive");
}

Expand Down Expand Up @@ -3630,8 +3625,7 @@ bool AsmParser::ParseDirectiveElseIf(SMLoc DirectiveLoc) {
if (LastIgnoreState || TheCondState.CondMet) {
TheCondState.Ignore = true;
eatToEndOfStatement();
}
else {
} else {
int64_t ExprValue;
if (parseAbsoluteExpression(ExprValue))
return true;
Expand Down

0 comments on commit efa703d

Please sign in to comment.