search for: setcurrentfunct

Displaying 1 result from an estimated 1 matches for "setcurrentfunct".

2013 Apr 01
1
[LLVMdev] path profile result with LLVM
...////////////////// bool PathProfileOutput::runOnModule(Module &M) { PathProfileInfo& pathProfileInfo = getAnalysis<PathProfileInfo>(); for(Module::iterator F = M.begin();F != M.end(); ++F){ if (F->isDeclaration()) continue; pathProfileInfo.setCurrentFunction(F); for(ProfilePathIterator nextPath=pathProfileInfo.pathBegin();nextPath != pathProfileInfo.pathEnd();nextPath++){ ProfilePath* currentPath = nextPath->second; errs() << "Function: "+ F->getName() << "\n"; errs() <<"path #" <&l...