mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 10:21:54 +00:00
fix constness warnings
llvm-svn: 109224
This commit is contained in:
parent
883daea18d
commit
30f8e2112c
@ -52,7 +52,8 @@ FunctionPass *llvm::createMSP430BranchSelectionPass() {
|
||||
}
|
||||
|
||||
bool MSP430BSel::runOnMachineFunction(MachineFunction &Fn) {
|
||||
const MSP430InstrInfo *TII = (MSP430InstrInfo*)Fn.getTarget().getInstrInfo();
|
||||
const MSP430InstrInfo *TII =
|
||||
static_cast<const MSP430InstrInfo*>(Fn.getTarget().getInstrInfo());
|
||||
// Give the blocks of the function a dense, in-order, numbering.
|
||||
Fn.RenumberBlocks();
|
||||
BlockSizes.resize(Fn.getNumBlockIDs());
|
||||
|
@ -53,7 +53,8 @@ FunctionPass *llvm::createPPCBranchSelectionPass() {
|
||||
}
|
||||
|
||||
bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) {
|
||||
const PPCInstrInfo *TII = (PPCInstrInfo*)Fn.getTarget().getInstrInfo();
|
||||
const PPCInstrInfo *TII =
|
||||
static_cast<const PPCInstrInfo*>(Fn.getTarget().getInstrInfo());
|
||||
// Give the blocks of the function a dense, in-order, numbering.
|
||||
Fn.RenumberBlocks();
|
||||
BlockSizes.resize(Fn.getNumBlockIDs());
|
||||
|
Loading…
x
Reference in New Issue
Block a user