From f2b4a7f862527a58fc521898e33447f582a133d5 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Sat, 21 Mar 2015 03:32:45 +0000 Subject: [PATCH] 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 --- include/llvm/Target/TargetMachine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0