]> granicus.if.org Git - clang/commitdiff
Update InstrProf pass creator API reference
authorXinliang David Li <davidxl@google.com>
Mon, 18 Apr 2016 17:48:12 +0000 (17:48 +0000)
committerXinliang David Li <davidxl@google.com>
Mon, 18 Apr 2016 17:48:12 +0000 (17:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266638 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BackendUtil.cpp

index a463b7de0e46e84de5148f6e560bf43e9356ee3f..f09182f565d62c0f2d72073600e526bf1649aae0 100644 (file)
@@ -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())