Reland "[PS4/PS5][profiling] Go back to the old way of doing a runtime hook"
authorPaul Robinson <paul.robinson@sony.com>
Thu, 16 Jun 2022 18:41:51 +0000 (11:41 -0700)
committerPaul Robinson <paul.robinson@sony.com>
Thu, 16 Jun 2022 18:53:48 +0000 (11:53 -0700)
commit3f6030255d7afb21db58eb343bd2a7001d8f1232
tree208390a09f73370806aa7c06b649a9e90acd8ae6
parentdae2fafe056c83a802c1f1a1baa3cd48416c06f7
Reland "[PS4/PS5][profiling] Go back to the old way of doing a runtime hook"

Profiling stopped working for us after D98061, which was largely a
Fuschia-specific patch but in one place used `isOSBinFormatELF` to
make a decision.  I'm adding a PS4/PS5 exception to that, so we can
get profiling to work again.

Differential Revision: https://reviews.llvm.org/D127506
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Instrumentation/InstrProfiling/profiling.ll