Add InlineCost class for represent the estimated cost of inlining a
[oota-llvm.git] / lib / Transforms / IPO / InlineSimple.cpp
index 02cae2a6e674c7d90ffadd9e8714697e4ab761e7..8ae5235383360ca2f77351c21c23a94b6d33a132 100644 (file)
@@ -37,7 +37,7 @@ namespace {
     SimpleInliner() : Inliner(&ID) {}
     SimpleInliner(int Threshold) : Inliner(&ID, Threshold) {}
     static char ID; // Pass identification, replacement for typeid
-    int getInlineCost(CallSite CS) {
+    InlineCost getInlineCost(CallSite CS) {
       return CA.getInlineCost(CS, NeverInline);
     }
     float getInlineFudgeFactor(CallSite CS) {