mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-20 10:07:02 +00:00
[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…
x
Reference in New Issue
Block a user