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/Analysis/ProfileInfoLoaderPass.cpp

    r189 r319  
    4646    static char ID; // Class identification, replacement for typeinfo
    4747    explicit LoaderPass(const std::string &filename = "")
    48       : ModulePass(&ID), Filename(filename) {
     48      : ModulePass(ID), Filename(filename) {
    4949      if (filename.empty()) Filename = ProfileInfoFilename;
    5050    }
     
    6868    /// should override this to adjust the this pointer as needed for the
    6969    /// specified pass info.
    70     virtual void *getAdjustedAnalysisPointer(const PassInfo *PI) {
    71       if (PI->isPassID(&ProfileInfo::ID))
     70    virtual void *getAdjustedAnalysisPointer(AnalysisID PI) {
     71      if (PI == &ProfileInfo::ID)
    7272        return (ProfileInfo*)this;
    7373      return this;
     
    8080
    8181char LoaderPass::ID = 0;
    82 static RegisterPass<LoaderPass>
    83 X("profile-loader", "Load profile information from llvmprof.out", false, true);
    84 
    85 static RegisterAnalysisGroup<ProfileInfo> Y(X);
    86 
    87 const PassInfo *llvm::ProfileLoaderPassID = &X;
     82INITIALIZE_AG_PASS(LoaderPass, ProfileInfo, "profile-loader",
     83              "Load profile information from llvmprof.out", false, true, false);
     84
     85char &llvm::ProfileLoaderPassID = LoaderPass::ID;
    8886
    8987ModulePass *llvm::createProfileLoaderPass() { return new LoaderPass(); }
     
    120118    recurseBasicBlock(*bbi);
    121119  }
    122   for (pred_const_iterator bbi = pred_begin(BB), bbe = pred_end(BB);
     120  for (const_pred_iterator bbi = pred_begin(BB), bbe = pred_end(BB);
    123121       bbi != bbe; ++bbi) {
    124122    recurseBasicBlock(*bbi);
Note: See TracChangeset for help on using the changeset viewer.