From: Xinliang David Li Date: Mon, 18 Apr 2016 17:48:12 +0000 (+0000) Subject: Update InstrProf pass creator API reference X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f89ef5df60c281444be90c744c2dda285136fbf;p=clang Update InstrProf pass creator API reference git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266638 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BackendUtil.cpp b/lib/CodeGen/BackendUtil.cpp index a463b7de0e..f09182f565 100644 --- a/lib/CodeGen/BackendUtil.cpp +++ b/lib/CodeGen/BackendUtil.cpp @@ -439,7 +439,7 @@ void EmitAssemblyHelper::CreatePasses(ModuleSummaryIndex *ModuleSummary) { InstrProfOptions Options; Options.NoRedZone = CodeGenOpts.DisableRedZone; Options.InstrProfileOutput = CodeGenOpts.InstrProfileOutput; - MPM->add(createInstrProfilingPass(Options)); + MPM->add(createInstrProfilingLegacyPass(Options)); } if (CodeGenOpts.hasProfileIRInstr()) { if (!CodeGenOpts.InstrProfileOutput.empty())