[llvm-commits] [llvm] r164040 - /llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp
Bill Wendling
isanbard at gmail.com
Mon Sep 17 10:57:05 PDT 2012
Author: void
Date: Mon Sep 17 12:57:05 2012
New Revision: 164040
URL: http://llvm.org/viewvc/llvm-project?rev=164040&view=rev
Log:
s/__llvm_gcov_flush/__gcov_flush/g
Modified:
llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp?rev=164040&r1=164039&r2=164040&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/GCOVProfiling.cpp Mon Sep 17 12:57:05 2012
@@ -751,10 +751,10 @@
void GCOVProfiler::
insertFlush(ArrayRef<std::pair<GlobalVariable*, MDNode*> > 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 @@
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");
}
More information about the llvm-commits
mailing list