aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2014-03-06 04:55:35 +0000
committerBob Wilson <bob.wilson@apple.com>2014-03-06 04:55:35 +0000
commit68f475faf747c537591aa8a29bd9cdaf12da820b (patch)
treedebdf32c8bad742bf989c0588f30b9c2b262b1d8 /llvm/lib/Support/SourceMgr.cpp
parent749ebc7f33de3ea3f3212daa3bdcd958b1ca0ff6 (diff)
downloadllvm-68f475faf747c537591aa8a29bd9cdaf12da820b.zip
llvm-68f475faf747c537591aa8a29bd9cdaf12da820b.tar.gz
llvm-68f475faf747c537591aa8a29bd9cdaf12da820b.tar.bz2
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. llvm-svn: 203073
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions