[profile] Support hostname expansion in LLVM_PROFILE_FILE
authorVedant Kumar <vsk@apple.com>
Fri, 29 Jan 2016 23:52:11 +0000 (23:52 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 29 Jan 2016 23:52:11 +0000 (23:52 +0000)
commita06e8ca6c58173151cfdb7c1d871a1cf19802d53
tree192db733c0eb68352fe8bbc687ca37763dc37d16
parentdcb5557f2d26089b0d5b9988c9b6178ae522ef0c
[profile] Support hostname expansion in LLVM_PROFILE_FILE

This patch adds support for expanding "%h" out to the machine hostname
in the LLVM_PROFILE_FILE environment variable.

Patch by Daniel Waters!

Differential Revision: http://reviews.llvm.org/D16371

llvm-svn: 259272
compiler-rt/lib/profile/InstrProfilingFile.c
compiler-rt/lib/profile/InstrProfilingPort.h
compiler-rt/test/profile/instrprof-hostname.c [new file with mode: 0644]