- Timestamp:
- Apr 19, 2011, 11:12:07 PM (14 years ago)
- Location:
- clamav/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
clamav/trunk ¶
-
Property svn:mergeinfo
set to
/clamav/vendor/0.97 merged eligible
-
Property svn:mergeinfo
set to
-
TabularUnified clamav/trunk/libclamav/c++/llvm/lib/Transforms/IPO/InlineSimple.cpp ¶
r189 r319 34 34 InlineCostAnalyzer CA; 35 35 public: 36 SimpleInliner() : Inliner( &ID) {}37 SimpleInliner(int Threshold) : Inliner( &ID, Threshold) {}36 SimpleInliner() : Inliner(ID) {} 37 SimpleInliner(int Threshold) : Inliner(ID, Threshold) {} 38 38 static char ID; // Pass identification, replacement for typeid 39 39 InlineCost getInlineCost(CallSite CS) { … … 46 46 CA.resetCachedCostInfo(Caller); 47 47 } 48 void growCachedCostInfo(Function* Caller, Function* Callee) { 49 CA.growCachedCostInfo(Caller, Callee); 50 } 48 51 virtual bool doInitialization(CallGraph &CG); 52 void releaseMemory() { 53 CA.clear(); 54 } 49 55 }; 50 56 } 51 57 52 58 char SimpleInliner::ID = 0; 53 static RegisterPass<SimpleInliner> 54 X("inline", "Function Integration/Inlining");59 INITIALIZE_PASS(SimpleInliner, "inline", 60 "Function Integration/Inlining", false, false); 55 61 56 62 Pass *llvm::createFunctionInliningPass() { return new SimpleInliner(); }
Note:
See TracChangeset
for help on using the changeset viewer.