]> granicus.if.org Git - clang/commit
InstrProf: Emit runtime hook directly in IRGen
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 28 Mar 2014 17:53:22 +0000 (17:53 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 28 Mar 2014 17:53:22 +0000 (17:53 +0000)
commit97140c9270fdadc8af2c6e0a8ff06f090ec7eaa7
tree6a288c7cb276c4761e61caa95dfbf6919dd2f550
parentd12127df41ba85d7bbf46219c8c0f665d7a12ace
InstrProf: Emit runtime hook directly in IRGen

-u behaviour is apparently not portable between linkers (see cfe-commits
discussions for r204379 and r205012).  I've moved the logic to IRGen,
where it should have been in the first place.

I don't have a Linux system to test this on, so it's possible this logic
*still* doesn't pull in the instrumented profiling runtime on Linux.

I'm in the process of getting tests going on the compiler-rt side
(llvm-commits "[PATCH] InstrProf: Add initial compiler-rt test").  Once
we have tests for the full flow there, the runtime logic should get a
whole lot less brittle.

<rdar://problem/16458307>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205023 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPGO.cpp
lib/Driver/ToolChains.cpp
lib/Driver/Tools.cpp
test/Profile/c-linkage.c
test/Profile/cxx-linkage.cpp