diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-17 15:32:28 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-17 15:32:28 +0000 |
commit | 8422e57baaf8a88d8cca5d09e0f4077582faaaaa (patch) | |
tree | 9bc9f8dd6003625b13aa9563a5a385d307efd341 /llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp | |
parent | 20e094c71199cd19c10df18f25c43fff37edc809 (diff) | |
download | bcm5719-llvm-8422e57baaf8a88d8cca5d09e0f4077582faaaaa.tar.gz bcm5719-llvm-8422e57baaf8a88d8cca5d09e0f4077582faaaaa.zip |
Delete now-unnecessary const_casts.
llvm-svn: 101637
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp b/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp index cd7772486d3..c083d8c30b1 100644 --- a/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp +++ b/llvm/lib/Target/Alpha/AlphaRegisterInfo.cpp @@ -212,15 +212,14 @@ void AlphaRegisterInfo::emitPrologue(MachineFunction &MF) const { //handle GOP offset BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDAHg), Alpha::R29) - .addGlobalAddress(const_cast<Function*>(MF.getFunction())) + .addGlobalAddress(MF.getFunction()) .addReg(Alpha::R27).addImm(++curgpdist); BuildMI(MBB, MBBI, dl, TII.get(Alpha::LDAg), Alpha::R29) - .addGlobalAddress(const_cast<Function*>(MF.getFunction())) + .addGlobalAddress(MF.getFunction()) .addReg(Alpha::R29).addImm(curgpdist); - //evil const_cast until MO stuff setup to handle const BuildMI(MBB, MBBI, dl, TII.get(Alpha::ALTENT)) - .addGlobalAddress(const_cast<Function*>(MF.getFunction())); + .addGlobalAddress(MF.getFunction()); // Get the number of bytes to allocate from the FrameInfo long NumBytes = MFI->getStackSize(); |