Add a function for profiling to run at shutdown. Unlike the existing API, this
commit918035f802be7840177f77389d0b70415f84b06f
authorNick Lewycky <nicholas@mxc.ca>
Fri, 8 Apr 2011 22:19:52 +0000 (8 22:19 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 8 Apr 2011 22:19:52 +0000 (8 22:19 +0000)
tree9823dececbc41c2cbc36a477b7a5ca691ecc2836
parent7c90e4662205c14da6a340501316b3059f7fd871
Add a function for profiling to run at shutdown. Unlike the existing API, this
can be used even when main() isn't present in the Module, but it means that you
don't get to read argv[].

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129163 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/ProfilingUtils.cpp
lib/Transforms/Instrumentation/ProfilingUtils.h