[Profile] Use a flag to enable PGO rather than the profraw filename
Patch by Jake VanAdrighem Differential Revision: http://reviews.llvm.org/D22608 llvm-svn: 276517
This commit is contained in:
parent
9239245401
commit
b65f8ae9e8
|
@ -453,6 +453,7 @@ void EmitAssemblyHelper::CreatePasses(legacy::PassManager &MPM,
|
|||
MPM.add(createInstrProfilingLegacyPass(Options));
|
||||
}
|
||||
if (CodeGenOpts.hasProfileIRInstr()) {
|
||||
PMBuilder.EnablePGOInstrGen = true;
|
||||
if (!CodeGenOpts.InstrProfileOutput.empty())
|
||||
PMBuilder.PGOInstrGen = CodeGenOpts.InstrProfileOutput;
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue