diff options
author | Xinliang David Li <davidxl@google.com> | 2015-12-15 19:44:45 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-12-15 19:44:45 +0000 |
commit | 28aa0a5f68bf6531eb2d179c623d8919aaea2eba (patch) | |
tree | 556d229bb0d71dba530345f9ccc25caa39e9cfed /include | |
parent | 591c3d8fe6cae3200b7a2ef9e9f60e68aeea3760 (diff) |
Coverage code refactoring /NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255670 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ProfileData/InstrProf.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ProfileData/InstrProf.h b/include/llvm/ProfileData/InstrProf.h index 98cb5b8e25a..a1d5ed97e0b 100644 --- a/include/llvm/ProfileData/InstrProf.h +++ b/include/llvm/ProfileData/InstrProf.h @@ -156,6 +156,10 @@ GlobalVariable *createPGOFuncNameVar(Module &M, GlobalValue::LinkageTypes Linkage, StringRef FuncName); +/// Given a PGO function name, remove the filename prefix and return +/// the original (static) function name. +StringRef getFuncNameWithoutPrefix(StringRef PGOFuncName, StringRef FileName); + const std::error_category &instrprof_category(); enum class instrprof_error { |