[llvm] r218497 - Target: Fix build breakage.

Eric Christopher echristo at gmail.com
Thu Sep 25 23:57:57 PDT 2014


Thanks a lot David. Apologies.
On Sep 25, 2014 8:09 PM, "David Majnemer" <david.majnemer at gmail.com> wrote:

> Author: majnemer
> Date: Thu Sep 25 21:57:05 2014
> New Revision: 218497
>
> URL: http://llvm.org/viewvc/llvm-project?rev=218497&view=rev
> Log:
> Target: Fix build breakage.
>
> No functional change intended.
>
> Modified:
>     llvm/trunk/include/llvm/Target/TargetMachine.h
>     llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
>
> Modified: llvm/trunk/include/llvm/Target/TargetMachine.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetMachine.h?rev=218497&r1=218496&r2=218497&view=diff
>
> ==============================================================================
> --- llvm/trunk/include/llvm/Target/TargetMachine.h (original)
> +++ llvm/trunk/include/llvm/Target/TargetMachine.h Thu Sep 25 21:57:05 2014
> @@ -99,7 +99,7 @@ public:
>    virtual const TargetSubtargetInfo *getSubtargetImpl() const {
>      return nullptr;
>    }
> -  virtual const TargetSubtargetInfo *getSubtargetImpl(const Function *)
> const {
> +  virtual const TargetSubtargetInfo *getSubtargetImpl(const Function &)
> const {
>      return getSubtargetImpl();
>    }
>
>
> Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp?rev=218497&r1=218496&r2=218497&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp (original)
> +++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Thu Sep 25 21:57:05
> 2014
> @@ -85,7 +85,7 @@ MipselTargetMachine(const Target &T, Str
>    : 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(cons
>  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;
>  }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140925/8d263d79/attachment.html>


More information about the llvm-commits mailing list