[PGO] simple refactoring (NFC)
[oota-llvm.git] / include / llvm / ProfileData / InstrProf.h
index d8e9174196db1cbce0896960b054269c69966ccf..6b2a396f9b1640338a83b48fed0de9a3511f961a 100644 (file)
@@ -155,6 +155,8 @@ GlobalVariable *createPGOFuncNameVar(Function &F, StringRef FuncName);
 GlobalVariable *createPGOFuncNameVar(Module &M,
                                      GlobalValue::LinkageTypes Linkage,
                                      StringRef FuncName);
 GlobalVariable *createPGOFuncNameVar(Module &M,
                                      GlobalValue::LinkageTypes Linkage,
                                      StringRef FuncName);
+/// Return the initializer in string of the PGO name var \c NameVar.
+StringRef getPGOFuncNameVarInitializer(GlobalVariable *NameVar);
 
 /// Given a PGO function name, remove the filename prefix and return
 /// the original (static) function name.
 
 /// Given a PGO function name, remove the filename prefix and return
 /// the original (static) function name.