[Profile] Support __llvm_profile_set_file_object in continuous mode.
authorZequan Wu <zequanwu@google.com>
Tue, 17 Aug 2021 21:18:52 +0000 (14:18 -0700)
committerZequan Wu <zequanwu@google.com>
Fri, 27 Aug 2021 20:06:46 +0000 (13:06 -0700)
commit1b05245119ddb7279a2ae55319b2ae82aac306db
tree38b76ab5481512632f49bfa7a6461306b5f8cefe
parent8f859cc34966ede0054842cb5243536f9572b708
[Profile] Support __llvm_profile_set_file_object in continuous mode.

Replace D107203, because __llvm_profile_set_file_object is usually used when the
process doesn't have permission to open/create file. That patch trying to copy
from old profile to new profile contradicts with the usage.

Differential Revision: https://reviews.llvm.org/D108242
compiler-rt/lib/profile/InstrProfiling.h
compiler-rt/lib/profile/InstrProfilingFile.c
compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c