Skip to content

Commit c461809

Browse files
committed
run clang format
1 parent c36f94e commit c461809

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

llvm/include/llvm/MC/MCInstrAnalysis.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ class MCInstrAnalysis {
185185
/// Given an instruction that accesses a menory address, try to compute
186186
/// the target address. Return true success, and the address in Target.
187187
virtual bool evaluateInstruction(const MCInst &Inst, uint64_t Addr,
188-
uint64_t Size, uint64_t &Target
189-
) const;
188+
uint64_t Size, uint64_t &Target) const;
190189

191190
/// Given an instruction tries to get the address of a memory operand. Returns
192191
/// the address on success.

llvm/lib/MC/MCInstrAnalysis.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ bool MCInstrAnalysis::evaluateBranch(const MCInst & /*Inst*/, uint64_t /*Addr*/,
3131
}
3232

3333
bool MCInstrAnalysis::evaluateInstruction(const MCInst &Inst, uint64_t Addr,
34-
uint64_t Size, uint64_t &Target
35-
) const {
34+
uint64_t Size,
35+
uint64_t &Target) const {
3636
return false;
3737
}
3838

llvm/lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,7 @@ class RISCVMCInstrAnalysis : public MCInstrAnalysis {
241241
}
242242

243243
bool evaluateInstruction(const MCInst &Inst, uint64_t Addr, uint64_t Size,
244-
uint64_t &Target
245-
) const override {
244+
uint64_t &Target) const override {
246245
switch(Inst.getOpcode()) {
247246
default:
248247
return false;

llvm/tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,11 +2323,10 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
23232323
if (Disassembled && DT->InstrAnalysis) {
23242324
llvm::raw_ostream *TargetOS = &FOS;
23252325
uint64_t Target;
2326-
bool PrintTarget =
2327-
DT->InstrAnalysis->evaluateBranch(Inst, SectionAddr + Index,
2328-
Size, Target) ||
2329-
DT->InstrAnalysis->evaluateInstruction(
2330-
Inst, SectionAddr + Index, Size, Target);
2326+
bool PrintTarget = DT->InstrAnalysis->evaluateBranch(
2327+
Inst, SectionAddr + Index, Size, Target) ||
2328+
DT->InstrAnalysis->evaluateInstruction(
2329+
Inst, SectionAddr + Index, Size, Target);
23312330
if (!PrintTarget) {
23322331
if (std::optional<uint64_t> MaybeTarget =
23332332
DT->InstrAnalysis->evaluateMemoryOperandAddress(

0 commit comments

Comments
 (0)