mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
Use enum instead of unsigned. NFC.
The unsigned opcode argument here was the result of BinaryOperator->getOpcode(). That returns a BinaryOps enum which is more accurate than passing around an unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242265 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
babb387919
commit
5f34535ced
@ -1409,7 +1409,8 @@ void SelectionDAGBuilder::FindMergedConditions(const Value *Cond,
|
|||||||
MachineBasicBlock *FBB,
|
MachineBasicBlock *FBB,
|
||||||
MachineBasicBlock *CurBB,
|
MachineBasicBlock *CurBB,
|
||||||
MachineBasicBlock *SwitchBB,
|
MachineBasicBlock *SwitchBB,
|
||||||
unsigned Opc, uint32_t TWeight,
|
Instruction::BinaryOps Opc,
|
||||||
|
uint32_t TWeight,
|
||||||
uint32_t FWeight) {
|
uint32_t FWeight) {
|
||||||
// If this node is not part of the or/and tree, emit it as a branch.
|
// If this node is not part of the or/and tree, emit it as a branch.
|
||||||
const Instruction *BOp = dyn_cast<Instruction>(Cond);
|
const Instruction *BOp = dyn_cast<Instruction>(Cond);
|
||||||
|
@ -692,7 +692,8 @@ public:
|
|||||||
|
|
||||||
void FindMergedConditions(const Value *Cond, MachineBasicBlock *TBB,
|
void FindMergedConditions(const Value *Cond, MachineBasicBlock *TBB,
|
||||||
MachineBasicBlock *FBB, MachineBasicBlock *CurBB,
|
MachineBasicBlock *FBB, MachineBasicBlock *CurBB,
|
||||||
MachineBasicBlock *SwitchBB, unsigned Opc,
|
MachineBasicBlock *SwitchBB,
|
||||||
|
Instruction::BinaryOps Opc,
|
||||||
uint32_t TW, uint32_t FW);
|
uint32_t TW, uint32_t FW);
|
||||||
void EmitBranchForMergedCondition(const Value *Cond, MachineBasicBlock *TBB,
|
void EmitBranchForMergedCondition(const Value *Cond, MachineBasicBlock *TBB,
|
||||||
MachineBasicBlock *FBB,
|
MachineBasicBlock *FBB,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user