From: Eric Christopher Date: Sat, 21 Mar 2015 03:32:45 +0000 (+0000) Subject: Forward the Function based getSubtarget call to the appropriate Impl X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f2b4a7f862527a58fc521898e33447f582a133d5;p=oota-llvm.git Forward the Function based getSubtarget call to the appropriate Impl call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232881 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index cd43532fb65..1ffaeb0c143 100644 --- a/include/llvm/Target/TargetMachine.h +++ b/include/llvm/Target/TargetMachine.h @@ -124,8 +124,8 @@ public: template const STC &getSubtarget() const { return *static_cast(getSubtargetImpl()); } - template const STC &getSubtarget(const Function &) const { - return *static_cast(getSubtargetImpl()); + template const STC &getSubtarget(const Function &F) const { + return *static_cast(getSubtargetImpl(F)); } /// getDataLayout - This method returns a pointer to the DataLayout for