Ignore:
Timestamp:
Apr 19, 2011, 11:12:07 PM (14 years ago)
Author:
Yuri Dario
Message:

clamav: update trunk to 0.97.

Location:
clamav/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • clamav/trunk

  • TabularUnified clamav/trunk/libclamav/c++/llvm/lib/Transforms/IPO/InlineSimple.cpp

    r189 r319  
    3434    InlineCostAnalyzer CA;
    3535  public:
    36     SimpleInliner() : Inliner(&ID) {}
    37     SimpleInliner(int Threshold) : Inliner(&ID, Threshold) {}
     36    SimpleInliner() : Inliner(ID) {}
     37    SimpleInliner(int Threshold) : Inliner(ID, Threshold) {}
    3838    static char ID; // Pass identification, replacement for typeid
    3939    InlineCost getInlineCost(CallSite CS) {
     
    4646      CA.resetCachedCostInfo(Caller);
    4747    }
     48    void growCachedCostInfo(Function* Caller, Function* Callee) {
     49      CA.growCachedCostInfo(Caller, Callee);
     50    }
    4851    virtual bool doInitialization(CallGraph &CG);
     52    void releaseMemory() {
     53      CA.clear();
     54    }
    4955  };
    5056}
    5157
    5258char SimpleInliner::ID = 0;
    53 static RegisterPass<SimpleInliner>
    54 X("inline", "Function Integration/Inlining");
     59INITIALIZE_PASS(SimpleInliner, "inline",
     60                "Function Integration/Inlining", false, false);
    5561
    5662Pass *llvm::createFunctionInliningPass() { return new SimpleInliner(); }
Note: See TracChangeset for help on using the changeset viewer.