diff options
| author | Xinliang David Li <davidxl@google.com> | 2015-11-22 05:42:31 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2015-11-22 05:42:31 +0000 |
| commit | 924e05843db3eb08e8e60c952ffeba9d7ae35429 (patch) | |
| tree | 70b2809dbbac236d97eee56c165d2393c96d2858 /llvm/lib/Transforms | |
| parent | aac044e35cd384474e8511082094d889371c0339 (diff) | |
| download | bcm5719-llvm-924e05843db3eb08e8e60c952ffeba9d7ae35429.tar.gz bcm5719-llvm-924e05843db3eb08e8e60c952ffeba9d7ae35429.zip | |
[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')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp index a70bf27ed7b..03b404c1f3b 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); } |

