From: Bill Wendling Date: Mon, 17 Sep 2012 17:57:05 +0000 (+0000) Subject: s/__llvm_gcov_flush/__gcov_flush/g X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=78fff8ec487a7c16633c5795e38e297ce6ddafa4;p=oota-llvm.git s/__llvm_gcov_flush/__gcov_flush/g git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164040 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 06c1ec58b32..bcee0c5f04e 100644 --- a/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -751,10 +751,10 @@ void GCOVProfiler::insertIndirectCounterIncrement() { void GCOVProfiler:: insertFlush(ArrayRef > CountersBySP) { FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false); - Function *FlushF = M->getFunction("__llvm_gcov_flush"); + Function *FlushF = M->getFunction("__gcov_flush"); if (!FlushF) FlushF = Function::Create(FTy, GlobalValue::InternalLinkage, - "__llvm_gcov_flush", M); + "__gcov_flush", M); else FlushF->setLinkage(GlobalValue::InternalLinkage); FlushF->setUnnamedAddr(true); @@ -781,8 +781,8 @@ insertFlush(ArrayRef > CountersBySP) { if (RetTy == Type::getVoidTy(*Ctx)) Builder.CreateRetVoid(); else if (RetTy->isIntegerTy()) - // Used if __llvm_gcov_flush was implicitly declared. + // Used if __gcov_flush was implicitly declared. Builder.CreateRet(ConstantInt::get(RetTy, 0)); else - report_fatal_error("invalid return type for __llvm_gcov_flush"); + report_fatal_error("invalid return type for __gcov_flush"); }