|
@@ -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())
|