]> granicus.if.org Git - llvm/commit
[PGO] Use SourceFileName rather module name in PGOFuncName
authorRong Xu <xur@google.com>
Fri, 4 Jan 2019 22:54:03 +0000 (22:54 +0000)
committerRong Xu <xur@google.com>
Fri, 4 Jan 2019 22:54:03 +0000 (22:54 +0000)
commitfaf2047349739b486946a054eb1cc7c9da36a7c0
tree0b26e8b307c22cd78482c43eb0981232ca9b0056
parent0e2aef924e02d00a4d3454d63c1921a243d316c6
[PGO] Use SourceFileName rather module name in PGOFuncName

In LTO or Thin-lto mode (though linker plugin), the module
names are of temp file names which are different for
different compilations. Using SourceFileName avoids the issue.
This should not change any functionality for current PGO as
all the current callers of getPGOFuncName() is before LTO.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350442 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ProfileData/InstrProf.cpp