diff options
author | Reid Kleckner <rnk@google.com> | 2018-07-27 22:21:35 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2018-07-27 22:21:35 +0000 |
commit | ba82788ff6ac545f462eaf9a767c452a7d80023f (patch) | |
tree | 9295435d93a6afaf34b5696ab5535c09aa9e8192 /llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp | |
parent | 23d7a9ebbe6fd815af1f7263197df701c784d012 (diff) | |
download | bcm5719-llvm-ba82788ff6ac545f462eaf9a767c452a7d80023f.tar.gz bcm5719-llvm-ba82788ff6ac545f462eaf9a767c452a7d80023f.zip |
[InstrProf] Don't register __llvm_profile_runtime_user
Refactor some FileCheck prefixes while I'm at it.
Fixes PR38340
llvm-svn: 338172
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp')
-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 22076f04d6a..4d5dfb0aa66 100644 --- a/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp @@ -898,7 +898,7 @@ void InstrProfiling::emitRegistration() { IRBuilder<> IRB(BasicBlock::Create(M->getContext(), "", RegisterF)); for (Value *Data : UsedVars) - if (Data != NamesVar) + if (Data != NamesVar && !isa<Function>(Data)) IRB.CreateCall(RuntimeRegisterF, IRB.CreateBitCast(Data, VoidPtrTy)); if (NamesVar) { |