diff options
author | Bob Wilson <bob.wilson@apple.com> | 2014-03-06 04:55:37 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2014-03-06 04:55:37 +0000 |
commit | 467db6f5992514a4db2c9980407f22c394a36c57 (patch) | |
tree | da8ada64faf486340188209ce2c21ad63f8a8fb5 /lib/CodeGen/CodeGenPGO.h | |
parent | 83717113c57b1f9f7be295b007d60b44ac13f404 (diff) |
PGO: Rename variables to avoid referring to the "MangledName" of a function.
For C++ functions, we will continue to use the mangled name to identify
functions in the PGO profile data, but this name is confusing for things like
Objective-C methods. For functions with local linkage, we're also going to
include the file name to help distinguish those functions, so this changes to
use more generic variable names.
No functional changes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenPGO.h')
-rw-r--r-- | lib/CodeGen/CodeGenPGO.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenPGO.h b/lib/CodeGen/CodeGenPGO.h index 6af25b4205..c9c0e8b004 100644 --- a/lib/CodeGen/CodeGenPGO.h +++ b/lib/CodeGen/CodeGenPGO.h @@ -42,13 +42,13 @@ public: PGOProfileData(CodeGenModule &CGM, std::string Path); /// Fill Counts with the profile data for the given function name. Returns /// false on success. - bool getFunctionCounts(StringRef MangledName, std::vector<uint64_t> &Counts); + bool getFunctionCounts(StringRef FuncName, std::vector<uint64_t> &Counts); /// Return true if a function is hot. If we know nothing about the function, /// return false. - bool isHotFunction(StringRef MangledName); + bool isHotFunction(StringRef FuncName); /// Return true if a function is cold. If we know nothing about the function, /// return false. - bool isColdFunction(StringRef MangledName); + bool isColdFunction(StringRef FuncName); }; /// Per-function PGO state. This class should generally not be used directly, |