Skip to content

Commit 30dd584

Browse files
committed
dealing with git
1 parent a46dd92 commit 30dd584

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

llvm/lib/MC/MCInstrAnalysis.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#include "llvm/ADT/APInt.h"
1212
#include <cstdint>
13-
#include "MCInstrAnalysis.h"
1413

1514
namespace llvm {
1615
class MCSubtargetInfo;
@@ -31,7 +30,7 @@ bool MCInstrAnalysis::evaluateBranch(const MCInst & /*Inst*/, uint64_t /*Addr*/,
3130
return false;
3231
}
3332

34-
bool llvm::MCInstrAnalysis::evaluateInstruction(const MCInst &Inst,
33+
bool MCInstrAnalysis::evaluateInstruction(const MCInst &Inst,
3534
uint64_t Addr, uint64_t Size,
3635
uint64_t &Target) const {
3736
return false;

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,12 @@ class RISCVMCInstrAnalysis : public MCInstrAnalysis {
189189
}
190190
break;
191191
}
192-
case RISCV::AUIPC:
193-
case RISCV::LUI:
194-
{
192+
case RISCV::AUIPC: {
193+
setGPRState(Inst.getOperand(0).getReg(),
194+
Addr + (Inst.getOperand(1).getImm() << 12));
195+
break;
196+
}
197+
case RISCV::LUI: {
195198
setGPRState(Inst.getOperand(0).getReg(),
196199
Inst.getOperand(1).getImm() << 12);
197200
break;

0 commit comments

Comments
 (0)