llvm.org GIT mirror llvm / def282d
GCOV: Fix ABI breakage from r236303 This effectively reverts the part of r236303, which added a new member to the GCOVOptions and broke ABI compatibility with 3.6.0. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@236445 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 4 years ago
2 changed file(s) with 1 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
5858 // Emit the name of the function in the .gcda files. This is redundant, as
5959 // the function identifier can be used to find the name from the .gcno file.
6060 bool FunctionNamesInData;
61
62 // Emit the exit block immediately after the start block, rather than after
63 // all of the function body's blocks.
64 bool ExitBlockBeforeBody;
6561 };
6662 ModulePass *createGCOVProfilerPass(const GCOVOptions &Options =
6763 GCOVOptions::getDefault());
5656 Options.UseCfgChecksum = false;
5757 Options.NoRedZone = false;
5858 Options.FunctionNamesInData = true;
59 Options.ExitBlockBeforeBody = DefaultExitBlockBeforeBody;
6059
6160 if (DefaultGCOVVersion.size() != 4) {
6261 llvm::report_fatal_error(std::string("Invalid -default-gcov-version: ") +
518517
519518 Funcs.push_back(make_unique(SP, &out, FunctionIdent++,
520519 Options.UseCfgChecksum,
521 Options.ExitBlockBeforeBody));
520 DefaultExitBlockBeforeBody));
522521 GCOVFunction &Func = *Funcs.back();
523522
524523 for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) {