aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-11-22 05:42:31 +0000
committerXinliang David Li <davidxl@google.com>2015-11-22 05:42:31 +0000
commit924e05843db3eb08e8e60c952ffeba9d7ae35429 (patch)
tree70b2809dbbac236d97eee56c165d2393c96d2858 /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
parentaac044e35cd384474e8511082094d889371c0339 (diff)
downloadllvm-924e05843db3eb08e8e60c952ffeba9d7ae35429.zip
llvm-924e05843db3eb08e8e60c952ffeba9d7ae35429.tar.gz
llvm-924e05843db3eb08e8e60c952ffeba9d7ae35429.tar.bz2
[PGO] move names of runtime sections definitions to InstrProfData.inc
In profile runtime implementation for Darwin, Linux and FreeBSD, the names of sections holding profile control/counter/naming data need to be known by the runtime in order to locate the start/end of the data. Moving the name definitions to the common file to specify the connection. llvm-svn: 253814
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
index a70bf27..03b404c 100644
--- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
+++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
@@ -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);
}