Add InlineCost class for represent the estimated cost of inlining a
[oota-llvm.git] / lib / Transforms / IPO / InlineAlways.cpp
index 2799d6b22bc595a7de72c48eb1bf0b8473a1c2bd..d809b5aed173d8d56fc269bf1f536f6754d1b6a7 100644 (file)
@@ -39,7 +39,7 @@ namespace {
     // Use extremely low threshold. 
     AlwaysInliner() : Inliner(&ID, -2000000000) {}
     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) {