aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-05-17 01:27:30 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-05-17 01:27:30 +0000
commit55e4d66f0c427d916c6cc66d18b54be2e87aa847 (patch)
treeb913efce7e8c3eb551c11632bd6dab42bd0504c6 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parentb0869036c1143d53bb5b585ce06258463e7de1b2 (diff)
downloadllvm-55e4d66f0c427d916c6cc66d18b54be2e87aa847.zip
llvm-55e4d66f0c427d916c6cc66d18b54be2e87aa847.tar.gz
llvm-55e4d66f0c427d916c6cc66d18b54be2e87aa847.tar.bz2
InstrProf: Support profiling dlopen'd shared libraries
Shared objects are hard. After this commit, we do the right thing when profiling two separate shared objects that have been dlopen'd with `RTLD_LOCAL`, when the main executable is *not* being profiled. This mainly simplifies the writer logic. - At initialization, determine the output filename and truncate the file. Depending on whether shared objects can see each other, this may happen multiple times. - At exit, each executable writes its own profile in append mode. <rdar://problem/16918688> llvm-svn: 209053
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions