Skip to content

Commit 2241583

Browse files
committed
Run clang format
1 parent 11c50dc commit 2241583

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

llvm/include/llvm/MC/MCInstrAnalysis.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ class LLVM_ABI MCInstrAnalysis {
186186
/// Given an instruction that accesses a memory address, try to compute
187187
/// the target address. Return true on success, and the address in \p Target.
188188
virtual bool evaluateInstruction(const MCInst &Inst, uint64_t Addr,
189-
uint64_t Size, uint64_t &Target, const MCSubtargetInfo &STI) const;
189+
uint64_t Size, uint64_t &Target,
190+
const MCSubtargetInfo &STI) const;
190191

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

llvm/lib/MC/MCInstrAnalysis.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ 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,
35-
uint64_t &Target,
34+
uint64_t Size, uint64_t &Target,
3635
const MCSubtargetInfo &STI) const {
3736
return false;
3837
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ class RISCVMCInstrAnalysis : public MCInstrAnalysis {
244244
}
245245

246246
bool evaluateInstruction(const MCInst &Inst, uint64_t Addr, uint64_t Size,
247-
uint64_t &Target, const MCSubtargetInfo &STI) const override {
247+
uint64_t &Target,
248+
const MCSubtargetInfo &STI) const override {
248249
unsigned int ArchRegWidth = STI.getTargetTriple().getArchPointerBitWidth();
249250
switch(Inst.getOpcode()) {
250251
default:
@@ -442,7 +443,6 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeRISCVTargetMC() {
442443
// Register the null target streamer.
443444
TargetRegistry::RegisterNullTargetStreamer(*T,
444445
createRISCVNullTargetStreamer);
445-
TargetRegistry::RegisterMCInstrAnalysis(*T,
446-
createRISCVInstrAnalysis);
446+
TargetRegistry::RegisterMCInstrAnalysis(*T, createRISCVInstrAnalysis);
447447
}
448448
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,8 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
23582358
bool PrintTarget = DT->InstrAnalysis->evaluateBranch(
23592359
Inst, SectionAddr + Index, Size, Target) ||
23602360
DT->InstrAnalysis->evaluateInstruction(
2361-
Inst, SectionAddr + Index, Size, Target, *DT->SubtargetInfo);
2361+
Inst, SectionAddr + Index, Size, Target,
2362+
*DT->SubtargetInfo);
23622363
if (!PrintTarget) {
23632364
if (std::optional<uint64_t> MaybeTarget =
23642365
DT->InstrAnalysis->evaluateMemoryOperandAddress(

0 commit comments

Comments
 (0)