Adjustments to last patch based on review.
[oota-llvm.git] / include / llvm / Transforms / IPO / InlinerPass.h
index 7c3632fdce111ba2fd6e930f7da0774ed862e012..3aed6494b7cc6fca9fccf2cbdc8afa7ff29b8762 100644 (file)
@@ -61,6 +61,11 @@ struct Inliner : public CallGraphSCCPass {
   ///
   virtual float getInlineFudgeFactor(CallSite CS) = 0;
 
+  /// resetCachedCostInfo - erase any cached cost data from the derived class.
+  /// If the derived class has no such data this can be empty.
+  /// 
+  virtual void resetCachedCostInfo(Function* Caller) = 0;
+
   /// removeDeadFunctions - Remove dead functions that are not included in
   /// DNR (Do Not Remove) list.
   bool removeDeadFunctions(CallGraph &CG,