@@ -770,7 +770,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
770770 CodeGenOpts.InstrProfileOutput .empty () ? getDefaultProfileGenName ()
771771 : CodeGenOpts.InstrProfileOutput ,
772772 " " , " " , CodeGenOpts.MemoryProfileUsePath , nullptr , PGOOptions::IRInstr,
773- PGOOptions::NoCSAction, CodeGenOpts.DebugInfoForProfiling ,
773+ PGOOptions::NoCSAction, PGOOptions::ColdFuncAttr::None,
774+ CodeGenOpts.DebugInfoForProfiling ,
774775 /* PseudoProbeForProfiling=*/ false , CodeGenOpts.AtomicProfileUpdate );
775776 else if (CodeGenOpts.hasProfileIRUse ()) {
776777 // -fprofile-use.
@@ -779,28 +780,32 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
779780 PGOOpt = PGOOptions (
780781 CodeGenOpts.ProfileInstrumentUsePath , " " ,
781782 CodeGenOpts.ProfileRemappingFile , CodeGenOpts.MemoryProfileUsePath , VFS,
782- PGOOptions::IRUse, CSAction, CodeGenOpts.DebugInfoForProfiling );
783+ PGOOptions::IRUse, CSAction, PGOOptions::ColdFuncAttr::None,
784+ CodeGenOpts.DebugInfoForProfiling );
783785 } else if (!CodeGenOpts.SampleProfileFile .empty ())
784786 // -fprofile-sample-use
785787 PGOOpt = PGOOptions (
786788 CodeGenOpts.SampleProfileFile , " " , CodeGenOpts.ProfileRemappingFile ,
787789 CodeGenOpts.MemoryProfileUsePath , VFS, PGOOptions::SampleUse,
788- PGOOptions::NoCSAction, CodeGenOpts. DebugInfoForProfiling ,
789- CodeGenOpts.PseudoProbeForProfiling );
790+ PGOOptions::NoCSAction, PGOOptions::ColdFuncAttr::None ,
791+ CodeGenOpts.DebugInfoForProfiling , CodeGenOpts. PseudoProbeForProfiling );
790792 else if (!CodeGenOpts.MemoryProfileUsePath .empty ())
791793 // -fmemory-profile-use (without any of the above options)
792794 PGOOpt = PGOOptions (" " , " " , " " , CodeGenOpts.MemoryProfileUsePath , VFS,
793795 PGOOptions::NoAction, PGOOptions::NoCSAction,
796+ PGOOptions::ColdFuncAttr::None,
794797 CodeGenOpts.DebugInfoForProfiling );
795798 else if (CodeGenOpts.PseudoProbeForProfiling )
796799 // -fpseudo-probe-for-profiling
797800 PGOOpt = PGOOptions (" " , " " , " " , /* MemoryProfile=*/ " " , nullptr ,
798801 PGOOptions::NoAction, PGOOptions::NoCSAction,
802+ PGOOptions::ColdFuncAttr::None,
799803 CodeGenOpts.DebugInfoForProfiling , true );
800804 else if (CodeGenOpts.DebugInfoForProfiling )
801805 // -fdebug-info-for-profiling
802806 PGOOpt = PGOOptions (" " , " " , " " , /* MemoryProfile=*/ " " , nullptr ,
803- PGOOptions::NoAction, PGOOptions::NoCSAction, true );
807+ PGOOptions::NoAction, PGOOptions::NoCSAction,
808+ PGOOptions::ColdFuncAttr::None, true );
804809
805810 // Check to see if we want to generate a CS profile.
806811 if (CodeGenOpts.hasProfileCSIRInstr ()) {
@@ -823,7 +828,8 @@ void EmitAssemblyHelper::RunOptimizationPipeline(
823828 ? getDefaultProfileGenName ()
824829 : CodeGenOpts.InstrProfileOutput ,
825830 " " , /* MemoryProfile=*/ " " , nullptr , PGOOptions::NoAction,
826- PGOOptions::CSIRInstr, CodeGenOpts.DebugInfoForProfiling );
831+ PGOOptions::CSIRInstr, PGOOptions::ColdFuncAttr::None,
832+ CodeGenOpts.DebugInfoForProfiling );
827833 }
828834 if (TM)
829835 TM->setPGOOption (PGOOpt);
0 commit comments