[PGO] move names of runtime sections definitions to InstrProfData.inc
[oota-llvm.git] / lib / Transforms / Instrumentation / InstrProfiling.cpp
index a70bf27ed7b91dcc22dc90a087536717f5a77289..03b404c1f3b7667c0e779a5a69b4b6773566c117 100644 (file)
@@ -181,7 +181,7 @@ static Constant *getOrInsertValueProfilingCall(Module &M) {
   };
   auto *ValueProfilingCallTy =
       FunctionType::get(ReturnTy, makeArrayRef(ParamTypes), false);
-  return M.getOrInsertFunction("__llvm_profile_instrument_target",
+  return M.getOrInsertFunction(getInstrProfValueProfFuncName(),
                                ValueProfilingCallTy);
 }