[llvm] r232881 - Forward the Function based getSubtarget call to the appropriate Impl

Eric Christopher echristo at gmail.com
Fri Mar 20 20:32:45 PDT 2015


Author: echristo
Date: Fri Mar 20 22:32:45 2015
New Revision: 232881

URL: http://llvm.org/viewvc/llvm-project?rev=232881&view=rev
Log:
Forward the Function based getSubtarget call to the appropriate Impl
call.

Modified:
    llvm/trunk/include/llvm/Target/TargetMachine.h

Modified: llvm/trunk/include/llvm/Target/TargetMachine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetMachine.h?rev=232881&r1=232880&r2=232881&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetMachine.h (original)
+++ llvm/trunk/include/llvm/Target/TargetMachine.h Fri Mar 20 22:32:45 2015
@@ -124,8 +124,8 @@ public:
   template<typename STC> const STC &getSubtarget() const {
     return *static_cast<const STC*>(getSubtargetImpl());
   }
-  template <typename STC> const STC &getSubtarget(const Function &) const {
-    return *static_cast<const STC*>(getSubtargetImpl());
+  template <typename STC> const STC &getSubtarget(const Function &F) const {
+    return *static_cast<const STC*>(getSubtargetImpl(F));
   }
 
   /// getDataLayout - This method returns a pointer to the DataLayout for





More information about the llvm-commits mailing list