mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-29 14:40:25 +00:00
Use Function::getEntryBlock() instead of Function::front(), for clarity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7334b15210
commit
0db69dcc87
@ -72,7 +72,7 @@ bool FunctionProfiler::runOnModule(Module &M) {
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||
if (!I->isDeclaration())
|
||||
// Insert counter at the start of the function
|
||||
IncrementCounterInBlock(I->begin(), i++, Counters);
|
||||
IncrementCounterInBlock(&I->getEntryBlock(), i++, Counters);
|
||||
|
||||
// Add the initialization call to main.
|
||||
InsertProfilingInitCall(Main, "llvm_start_func_profiling", Counters);
|
||||
|
Loading…
Reference in New Issue
Block a user