mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
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
This commit is contained in:
1 parent
cd181f740d
commit
def282d714
2 files changed
+1
-6
No files matched your search
@@ -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());
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user