mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
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
This commit is contained in:
@@ -60,6 +60,10 @@ struct GCOVOptions {
|
||||
// Emit the name of the function in the .gcda files. This is redundant, as
|
||||
// the function identifier can be used to find the name from the .gcno file.
|
||||
bool FunctionNamesInData;
|
||||
|
||||
// Emit the exit block immediately after the start block, rather than after
|
||||
// all of the function body's blocks.
|
||||
bool ExitBlockBeforeBody;
|
||||
};
|
||||
ModulePass *createGCOVProfilerPass(const GCOVOptions &Options =
|
||||
GCOVOptions::getDefault());
|
||||
|
Reference in New Issue
Block a user