mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
s/__llvm_gcov_flush/__gcov_flush/g
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164040 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2e34b99e59
commit
78fff8ec48
@ -751,10 +751,10 @@ void GCOVProfiler::insertIndirectCounterIncrement() {
|
|||||||
void GCOVProfiler::
|
void GCOVProfiler::
|
||||||
insertFlush(ArrayRef<std::pair<GlobalVariable*, MDNode*> > CountersBySP) {
|
insertFlush(ArrayRef<std::pair<GlobalVariable*, MDNode*> > CountersBySP) {
|
||||||
FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false);
|
FunctionType *FTy = FunctionType::get(Type::getVoidTy(*Ctx), false);
|
||||||
Function *FlushF = M->getFunction("__llvm_gcov_flush");
|
Function *FlushF = M->getFunction("__gcov_flush");
|
||||||
if (!FlushF)
|
if (!FlushF)
|
||||||
FlushF = Function::Create(FTy, GlobalValue::InternalLinkage,
|
FlushF = Function::Create(FTy, GlobalValue::InternalLinkage,
|
||||||
"__llvm_gcov_flush", M);
|
"__gcov_flush", M);
|
||||||
else
|
else
|
||||||
FlushF->setLinkage(GlobalValue::InternalLinkage);
|
FlushF->setLinkage(GlobalValue::InternalLinkage);
|
||||||
FlushF->setUnnamedAddr(true);
|
FlushF->setUnnamedAddr(true);
|
||||||
@ -781,8 +781,8 @@ insertFlush(ArrayRef<std::pair<GlobalVariable*, MDNode*> > CountersBySP) {
|
|||||||
if (RetTy == Type::getVoidTy(*Ctx))
|
if (RetTy == Type::getVoidTy(*Ctx))
|
||||||
Builder.CreateRetVoid();
|
Builder.CreateRetVoid();
|
||||||
else if (RetTy->isIntegerTy())
|
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));
|
Builder.CreateRet(ConstantInt::get(RetTy, 0));
|
||||||
else
|
else
|
||||||
report_fatal_error("invalid return type for __llvm_gcov_flush");
|
report_fatal_error("invalid return type for __gcov_flush");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user