GCOV: Make the exit block placement from r223193 optional
authorJustin Bogner <mail@justinbogner.com>
Mon, 16 Mar 2015 23:52:03 +0000 (23:52 +0000)
committerJustin Bogner <mail@justinbogner.com>
Mon, 16 Mar 2015 23:52:03 +0000 (23:52 +0000)
commit6837ab53fb0d06460979e4e4a662b116fcbcca5b
tree6c955c0ee740559ff25d784022b1343ebd9ae409
parent4556b1fe22ace7ced5cd37f171ca4418826d46c4
GCOV: Make the exit block placement from r223193 optional

By default we want our gcov emission to stay 4.2 compatible, which
means we need to continue emit the exit block last by default. We add
an option to emit it before the body for users that need it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232438 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Instrumentation.h
lib/Transforms/Instrumentation/GCOVProfiling.cpp
test/Transforms/GCOVProfiling/return-block.ll