Skip to content

Commit 1318752

Browse files
committed
fix clang format
1 parent 3ec015e commit 1318752

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,7 @@ struct PPCOperand : public MCParsedAsmOperand {
366366
bool isS16ImmX16() const { return isExtImm<16>(/*Signed*/ true, 16); }
367367
bool isS17Imm() const { return isExtImm<17>(/*Signed*/ true, 1); }
368368

369-
template <uint64_t N>
370-
bool isSImmExpr() const {
369+
template <uint64_t N> bool isSImmExpr() const {
371370
// Once the PC-Rel ABI is finalized, evaluate whether a 34-bit
372371
// ContextImmediate is needed.
373372
return Kind == Expression || isSImm<N>();

llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,10 @@ void PPCInstPrinter::printS16ImmOperand(const MCInst *MI, unsigned OpNo,
430430
printOperand(MI, OpNo, STI, O);
431431
}
432432

433-
template<uint64_t N>
433+
template <uint64_t N>
434434
void PPCInstPrinter::printSImmOperand(const MCInst *MI, unsigned OpNo,
435-
const MCSubtargetInfo &STI,
436-
raw_ostream &O) {
435+
const MCSubtargetInfo &STI,
436+
raw_ostream &O) {
437437
if (MI->getOperand(OpNo).isImm()) {
438438
int64_t Value = MI->getOperand(OpNo).getImm();
439439
assert(isInt<N>(Value) && "Invalid imm argument!");

llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ class PPCInstPrinter : public MCInstPrinter {
8080
const MCSubtargetInfo &STI, raw_ostream &O);
8181
void printS16ImmOperand(const MCInst *MI, unsigned OpNo,
8282
const MCSubtargetInfo &STI, raw_ostream &O);
83-
template<uint64_t N>
83+
template <uint64_t N>
8484
void printSImmOperand(const MCInst *MI, unsigned OpNo,
85-
const MCSubtargetInfo &STI, raw_ostream &O);
85+
const MCSubtargetInfo &STI, raw_ostream &O);
8686
void printU16ImmOperand(const MCInst *MI, unsigned OpNo,
8787
const MCSubtargetInfo &STI, raw_ostream &O);
8888
void printImmZeroOperand(const MCInst *MI, unsigned OpNo,

0 commit comments

Comments
 (0)