From a7807637bf967af9df6fec3c1778ccd0aa74817b Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Thu, 20 Mar 2014 20:00:41 +0000 Subject: 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. llvm-svn: 204390 --- clang/lib/CodeGen/CodeGenPGO.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenPGO.h') 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. -- cgit v1.2.3