Browse Source

Update InstrProf pass creator API reference

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266638 91177308-0d34-0410-b5e6-96231b3b80d8
Xinliang David Li 9 năm trước cách đây
mục cha
commit
1f89ef5df6
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/CodeGen/BackendUtil.cpp

+ 1 - 1
lib/CodeGen/BackendUtil.cpp

@@ -439,7 +439,7 @@ void EmitAssemblyHelper::CreatePasses(ModuleSummaryIndex *ModuleSummary) {
     InstrProfOptions Options;
     InstrProfOptions Options;
     Options.NoRedZone = CodeGenOpts.DisableRedZone;
     Options.NoRedZone = CodeGenOpts.DisableRedZone;
     Options.InstrProfileOutput = CodeGenOpts.InstrProfileOutput;
     Options.InstrProfileOutput = CodeGenOpts.InstrProfileOutput;
-    MPM->add(createInstrProfilingPass(Options));
+    MPM->add(createInstrProfilingLegacyPass(Options));
   }
   }
   if (CodeGenOpts.hasProfileIRInstr()) {
   if (CodeGenOpts.hasProfileIRInstr()) {
     if (!CodeGenOpts.InstrProfileOutput.empty())
     if (!CodeGenOpts.InstrProfileOutput.empty())