InstrProf: Use LLVM's -instrprof pass for profiling
The logic for lowering profiling counters has been moved to an LLVM pass. Emit the intrinsics rather than duplicating the whole pass in clang. llvm-svn: 223683
This commit is contained in:
@@ -345,9 +345,6 @@ void CodeGenModule::Release() {
|
||||
if (ObjCRuntime)
|
||||
if (llvm::Function *ObjCInitFunction = ObjCRuntime->ModuleInitFunction())
|
||||
AddGlobalCtor(ObjCInitFunction);
|
||||
if (getCodeGenOpts().ProfileInstrGenerate)
|
||||
if (llvm::Function *PGOInit = CodeGenPGO::emitInitialization(*this))
|
||||
AddGlobalCtor(PGOInit, 0);
|
||||
if (PGOReader && PGOStats.hasDiagnostics())
|
||||
PGOStats.reportDiagnostics(getDiags(), getCodeGenOpts().MainFileName);
|
||||
EmitCtorList(GlobalCtors, "llvm.global_ctors");
|
||||
|
||||
Reference in New Issue
Block a user