summaryrefslogtreecommitdiff
path: root/lib/Target/Mips
diff options
context:
space:
mode:
authorJack Carter <jack.carter@imgtec.com>2014-01-22 23:31:38 +0000
committerJack Carter <jack.carter@imgtec.com>2014-01-22 23:31:38 +0000
commit4643feac1d0cdd2c223742a5571b3f93ac9c74eb (patch)
tree3ed9f557a31ff1867ca646a43f285e45249a929f /lib/Target/Mips
parent2ccf523ce7f7fc7fe5471c505aafa32d827a8343 (diff)
downloadllvm-4643feac1d0cdd2c223742a5571b3f93ac9c74eb.tar.gz
llvm-4643feac1d0cdd2c223742a5571b3f93ac9c74eb.tar.bz2
llvm-4643feac1d0cdd2c223742a5571b3f93ac9c74eb.tar.xz
[Mips] formatting through clang-format
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r--lib/Target/Mips/AsmParser/MipsAsmParser.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index d63f88f3ed..5a687f2ad4 100644
--- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -161,7 +161,7 @@ class MipsAsmParser : public MCTargetAsmParser {
MipsAsmParser::OperandMatchResultTy
parseLSAImm(SmallVectorImpl<MCParsedAsmOperand *> &Operands);
- bool searchSymbolAlias(SmallVectorImpl<MCParsedAsmOperand*> &Operands,
+ bool searchSymbolAlias(SmallVectorImpl<MCParsedAsmOperand *> &Operands,
unsigned RegKind);
bool ParseOperand(SmallVectorImpl<MCParsedAsmOperand *> &,
@@ -463,8 +463,8 @@ public:
return Op;
}
- static MipsOperand *CreateMem(unsigned Base, const MCExpr *Off,
- SMLoc S, SMLoc E) {
+ static MipsOperand *CreateMem(unsigned Base, const MCExpr *Off, SMLoc S,
+ SMLoc E) {
MipsOperand *Op = new MipsOperand(k_Memory);
Op->Mem.Base = Base;
Op->Mem.Off = Off;
@@ -580,13 +580,13 @@ bool MipsAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc,
break;
case Mips::BEQ:
case Mips::BNE:
- assert (MCID.getNumOperands() == 3 && "unexpected number of operands");
+ assert(MCID.getNumOperands() == 3 && "unexpected number of operands");
Offset = Inst.getOperand(2);
if (!Offset.isImm())
break; // We'll deal with this situation later on when applying fixups.
if (!isIntN(isMicroMips() ? 17 : 18, Offset.getImm()))
return Error(IDLoc, "branch target out of range");
- if (OffsetToAlignment (Offset.getImm(), 1LL << (isMicroMips() ? 1 : 2)))
+ if (OffsetToAlignment(Offset.getImm(), 1LL << (isMicroMips() ? 1 : 2)))
return Error(IDLoc, "branch to misaligned address");
break;
case Mips::BGEZ:
@@ -597,13 +597,13 @@ bool MipsAsmParser::processInstruction(MCInst &Inst, SMLoc IDLoc,
case Mips::BLTZAL:
case Mips::BC1F:
case Mips::BC1T:
- assert (MCID.getNumOperands() == 2 && "unexpected number of operands");
+ assert(MCID.getNumOperands() == 2 && "unexpected number of operands");
Offset = Inst.getOperand(1);
if (!Offset.isImm())
break; // We'll deal with this situation later on when applying fixups.
if (!isIntN(isMicroMips() ? 17 : 18, Offset.getImm()))
return Error(IDLoc, "branch target out of range");
- if (OffsetToAlignment (Offset.getImm(), 1LL << (isMicroMips() ? 1 : 2)))
+ if (OffsetToAlignment(Offset.getImm(), 1LL << (isMicroMips() ? 1 : 2)))
return Error(IDLoc, "branch to misaligned address");
break;
}
@@ -2151,8 +2151,8 @@ MipsAsmParser::parseLSAImm(SmallVectorImpl<MCParsedAsmOperand *> &Operands) {
return MatchOperand_ParseFail;
}
- Operands.push_back(MipsOperand::CreateLSAImm(Expr, S,
- Parser.getTok().getLoc()));
+ Operands.push_back(
+ MipsOperand::CreateLSAImm(Expr, S, Parser.getTok().getLoc()));
return MatchOperand_Success;
}
@@ -2378,7 +2378,7 @@ bool MipsAsmParser::parseSetAssignment() {
return reportParseError("unexpected token in .set directive");
Lex(); // Eat comma
- if (Parser.parseExpression(Value))
+ if (Parser.parseExpression(Value))
return reportParseError("expected valid expression after comma");
// Check if the Name already exists as a symbol.