Coverage code refactoring /NFC
[oota-llvm.git] / include / llvm / ProfileData / InstrProf.h
index 98cb5b8e25a7a492e3530796429bc6ae1c7c18dc..a1d5ed97e0b49b5fd07ca4a13f8905431f100f55 100644 (file)
@@ -156,6 +156,10 @@ GlobalVariable *createPGOFuncNameVar(Module &M,
                                      GlobalValue::LinkageTypes Linkage,
                                      StringRef FuncName);
 
+/// Given a PGO function name, remove the filename prefix and return
+/// the original (static) function name.
+StringRef getFuncNameWithoutPrefix(StringRef PGOFuncName, StringRef FileName);
+
 const std::error_category &instrprof_category();
 
 enum class instrprof_error {