summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-07-23 13:28:47 +0000
committerGabor Greif <ggreif@gmail.com>2010-07-23 13:28:47 +0000
commit4ad727179868398c1bda02c1bc686e72d7bba6e8 (patch)
tree48d270ad8271f9ea8352c5057f0f72ad678f3d50 /llvm
parent17a8ebcccf63695f0e684b0e366adc503f6c2d45 (diff)
downloadbcm5719-llvm-4ad727179868398c1bda02c1bc686e72d7bba6e8.tar.gz
bcm5719-llvm-4ad727179868398c1bda02c1bc686e72d7bba6e8.zip
fix constness warnings
llvm-svn: 109224
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/MSP430/MSP430BranchSelector.cpp3
-rw-r--r--llvm/lib/Target/PowerPC/PPCBranchSelector.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/MSP430/MSP430BranchSelector.cpp b/llvm/lib/Target/MSP430/MSP430BranchSelector.cpp
index 350b6751182..529fd931f65 100644
--- a/llvm/lib/Target/MSP430/MSP430BranchSelector.cpp
+++ b/llvm/lib/Target/MSP430/MSP430BranchSelector.cpp
@@ -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());
diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
index ab251e6b330..8c427a1c78b 100644
--- a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
@@ -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());
OpenPOWER on IntegriCloud