From: Tom Stellard Date: Mon, 4 May 2015 19:18:18 +0000 (+0000) Subject: GCOV: Fix ABI breakage from r236303 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=def282d71491211e1547d9007dc4528b738f93de;p=llvm 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 --- diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index 0de2d75c091..24e3ef783ee 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -59,10 +59,6 @@ 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()); diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index ec8e86b777c..60b541f1aa2 100644 --- a/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -57,7 +57,6 @@ GCOVOptions GCOVOptions::getDefault() { Options.UseCfgChecksum = false; Options.NoRedZone = false; Options.FunctionNamesInData = true; - Options.ExitBlockBeforeBody = DefaultExitBlockBeforeBody; if (DefaultGCOVVersion.size() != 4) { llvm::report_fatal_error(std::string("Invalid -default-gcov-version: ") + @@ -519,7 +518,7 @@ void GCOVProfiler::emitProfileNotes() { Funcs.push_back(make_unique(SP, &out, FunctionIdent++, Options.UseCfgChecksum, - Options.ExitBlockBeforeBody)); + DefaultExitBlockBeforeBody)); GCOVFunction &Func = *Funcs.back(); for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) {