diff options
author | Vedant Kumar <vsk@apple.com> | 2019-10-18 23:33:40 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2019-10-18 23:33:40 +0000 |
commit | 7000556ec0f00c6c96211b4e5c82032476f37cb5 (patch) | |
tree | c1407e59f8713b2b42865551a3c0728ca2cf01e7 /lib | |
parent | be1f932eb807ad248842b1669c3312c29e45f86d (diff) | |
download | clang-7000556ec0f00c6c96211b4e5c82032476f37cb5.tar.gz |
[profile] Do not cache __llvm_profile_get_filename result
When the %m filename pattern is used, the filename is unique to each
image, so the cached value is wrong.
It struck me that the full filename isn't something that's recomputed
often, so perhaps it doesn't need to be cached at all. David Li pointed
out we can go further and just hide lprofCurFilename. This may regress
workflows that depend on using the set-filename API to change filenames
across all loaded DSOs, but this is expected to be very rare.
rdar://55137071
Differential Revision: https://reviews.llvm.org/D69137
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Driver/ToolChains/Darwin.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Driver/ToolChains/Darwin.cpp b/lib/Driver/ToolChains/Darwin.cpp index b43766e98b..ee08b8208d 100644 --- a/lib/Driver/ToolChains/Darwin.cpp +++ b/lib/Driver/ToolChains/Darwin.cpp @@ -1128,7 +1128,6 @@ void Darwin::addProfileRTLibs(const ArgList &Args, } else { addExportedSymbol(CmdArgs, "___llvm_profile_filename"); addExportedSymbol(CmdArgs, "___llvm_profile_raw_version"); - addExportedSymbol(CmdArgs, "_lprofCurFilename"); } addExportedSymbol(CmdArgs, "_lprofDirMode"); } |