diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-20 20:00:41 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-03-20 20:00:41 +0000 |
commit | a7807637bf967af9df6fec3c1778ccd0aa74817b (patch) | |
tree | aaf1424a7c9cda68161b5a3bdca06cdcf8822087 /clang/lib/CodeGen/CodeGenPGO.h | |
parent | 6dab520c70a25f43f288f9875faf1e8df5a80c3a (diff) | |
download | bcm5719-llvm-a7807637bf967af9df6fec3c1778ccd0aa74817b.tar.gz bcm5719-llvm-a7807637bf967af9df6fec3c1778ccd0aa74817b.zip |
PGO: Change runtime prefix from pgo to profile
These functions are in the profile runtime. PGO comes later.
Unfortunately, there's only room for 16 characters in a Darwin section,
so use __llvm_prf_ instead of __llvm_profile_ for section names.
<rdar://problem/15943240>
llvm-svn: 204390
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenPGO.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.h b/clang/lib/CodeGen/CodeGenPGO.h index e859324ae08..d22486d372d 100644 --- a/clang/lib/CodeGen/CodeGenPGO.h +++ b/clang/lib/CodeGen/CodeGenPGO.h @@ -83,7 +83,7 @@ public: /// For functions with local linkage, this includes the main file name. StringRef getFuncName() const { return StringRef(*PrefixedFuncName); } std::string getFuncVarName(StringRef VarName) const { - return ("__llvm_pgo_" + VarName + "_" + RawFuncName).str(); + return ("__llvm_profile_" + VarName + "_" + RawFuncName).str(); } /// Return the counter value of the current region. |