aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/Mips/MipsTargetMachine.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-09-26 02:57:05 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-09-26 02:57:05 +0000
commitde36075b41a3bc7b65ded817186840c6c01583fe (patch)
tree606939c1ecc70afc69848ff9046e86c2e6aa5459 /llvm/lib/Target/Mips/MipsTargetMachine.cpp
parent4b3c90f2099f9f18bfaa8a4e798b81fbaeb44c22 (diff)
downloadllvm-de36075b41a3bc7b65ded817186840c6c01583fe.zip
llvm-de36075b41a3bc7b65ded817186840c6c01583fe.tar.gz
llvm-de36075b41a3bc7b65ded817186840c6c01583fe.tar.bz2
Target: Fix build breakage.
No functional change intended. llvm-svn: 218497
Diffstat (limited to 'llvm/lib/Target/Mips/MipsTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsTargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.cpp b/llvm/lib/Target/Mips/MipsTargetMachine.cpp
index afa60d2..8572952 100644
--- a/llvm/lib/Target/Mips/MipsTargetMachine.cpp
+++ b/llvm/lib/Target/Mips/MipsTargetMachine.cpp
@@ -85,7 +85,7 @@ MipselTargetMachine(const Target &T, StringRef TT,
: MipsTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, true) {}
const MipsSubtarget *
-MipsTargetMachine::getSubtargetImpl(const Function &F) const override {
+MipsTargetMachine::getSubtargetImpl(const Function &F) const {
AttributeSet FnAttrs = F.getAttributes();
Attribute CPUAttr =
FnAttrs.getAttribute(AttributeSet::FunctionIndex, "target-cpu");
@@ -124,7 +124,7 @@ MipsTargetMachine::getSubtargetImpl(const Function &F) const override {
void MipsTargetMachine::resetSubtarget(MachineFunction *MF) {
DEBUG(dbgs() << "resetSubtarget\n");
- Subtarget = const_cast<MipsSubtarget*>(getSubtargetImpl(MF->getFunction()));
+ Subtarget = const_cast<MipsSubtarget *>(getSubtargetImpl(*MF->getFunction()));
MF->setSubtarget(Subtarget);
return;
}