]> granicus.if.org Git - llvm/commitdiff
GCOV: Fix ABI breakage from r236303
authorTom Stellard <thomas.stellard@amd.com>
Mon, 4 May 2015 19:18:18 +0000 (19:18 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 4 May 2015 19:18:18 +0000 (19:18 +0000)
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

include/llvm/Transforms/Instrumentation.h
lib/Transforms/Instrumentation/GCOVProfiling.cpp

index 0de2d75c091c1b907062a5ccac898e71674360eb..24e3ef783ee62e6951d8db1f599c6a0212e42ed9 100644 (file)
@@ -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());
index ec8e86b777c915cfdb6cec63cbbf8f0812102919..60b541f1aa2f7e140837336444490a3f1cbd9098 100644 (file)
@@ -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<GCOVFunction>(SP, &out, FunctionIdent++,
                                                 Options.UseCfgChecksum,
-                                                Options.ExitBlockBeforeBody));
+                                                DefaultExitBlockBeforeBody));
       GCOVFunction &Func = *Funcs.back();
 
       for (Function::iterator BB = F->begin(), E = F->end(); BB != E; ++BB) {