diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2014-03-06 04:55:35 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2014-03-06 04:55:35 +0000 |
| commit | 83717113c57b1f9f7be295b007d60b44ac13f404 (patch) | |
| tree | f782a951a92ac08de6b27d80d6ebaf07da050850 /lib/CodeGen/ModuleBuilder.cpp | |
| parent | 4b1cb4e3c05e23d84a02c2120d1a5467e6d3e0eb (diff) | |
| download | clang-83717113c57b1f9f7be295b007d60b44ac13f404.tar.gz clang-83717113c57b1f9f7be295b007d60b44ac13f404.tar.bz2 clang-83717113c57b1f9f7be295b007d60b44ac13f404.tar.xz | |
Refactor PGO code in preparation for handling non-C/C++ code.
Move the PGO.assignRegionCounters() call out of StartFunction, because that
function is called from many places where it does not make sense to do PGO
instrumentation (e.g., compiler-generated helper functions). Change several
functions to take a StringRef argument for the unique name associated with
a function, so that the name can be set differently for things like Objective-C
methods and block literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions
