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 | 416b0b1dd8d918841bb78ab8b5d79c12b3ebf263 (patch) | |
tree | 1ebb6359614f6c0fa0db2731855c78c605494634 /lib/Transforms/Instrumentation/InstrProfiling.cpp | |
parent | add2047b2c6055c76a403e4e989df35ca5ce68b0 (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253814 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/InstrProfiling.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/InstrProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/InstrProfiling.cpp b/lib/Transforms/Instrumentation/InstrProfiling.cpp index a70bf27ed7b..03b404c1f3b 100644 --- a/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/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); } |