- 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/Analysis/ProfileInfoLoaderPass.cpp ¶
r189 r319 46 46 static char ID; // Class identification, replacement for typeinfo 47 47 explicit LoaderPass(const std::string &filename = "") 48 : ModulePass( &ID), Filename(filename) {48 : ModulePass(ID), Filename(filename) { 49 49 if (filename.empty()) Filename = ProfileInfoFilename; 50 50 } … … 68 68 /// should override this to adjust the this pointer as needed for the 69 69 /// 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) 72 72 return (ProfileInfo*)this; 73 73 return this; … … 80 80 81 81 char 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; 82 INITIALIZE_AG_PASS(LoaderPass, ProfileInfo, "profile-loader", 83 "Load profile information from llvmprof.out", false, true, false); 84 85 char &llvm::ProfileLoaderPassID = LoaderPass::ID; 88 86 89 87 ModulePass *llvm::createProfileLoaderPass() { return new LoaderPass(); } … … 120 118 recurseBasicBlock(*bbi); 121 119 } 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); 123 121 bbi != bbe; ++bbi) { 124 122 recurseBasicBlock(*bbi);
Note:
See TracChangeset
for help on using the changeset viewer.