@@ -449,7 +449,7 @@ static void handleExtBinaryWriter(sampleprof::SampleProfileWriter &Writer,
449
449
MemoryBuffer *Buffer,
450
450
sampleprof::ProfileSymbolList &WriterList,
451
451
bool CompressAllSections, bool UseMD5,
452
- bool PartialProfile ) {
452
+ bool GenPartialProfile ) {
453
453
populateProfileSymbolList (Buffer, WriterList);
454
454
if (WriterList.size () > 0 && OutputFormat != PF_Ext_Binary)
455
455
warn (" Profile Symbol list is not empty but the output format is not "
@@ -469,9 +469,9 @@ static void handleExtBinaryWriter(sampleprof::SampleProfileWriter &Writer,
469
469
else
470
470
Writer.setUseMD5 ();
471
471
}
472
- if (PartialProfile ) {
472
+ if (GenPartialProfile ) {
473
473
if (OutputFormat != PF_Ext_Binary)
474
- warn (" -partial-profile is ignored. Specify -extbinary to enable it" );
474
+ warn (" -gen- partial-profile is ignored. Specify -extbinary to enable it" );
475
475
else
476
476
Writer.setPartialProfile ();
477
477
}
@@ -481,7 +481,7 @@ static void
481
481
mergeSampleProfile (const WeightedFileVector &Inputs, SymbolRemapper *Remapper,
482
482
StringRef OutputFilename, ProfileFormat OutputFormat,
483
483
StringRef ProfileSymbolListFile, bool CompressAllSections,
484
- bool UseMD5, bool PartialProfile , FailureMode FailMode) {
484
+ bool UseMD5, bool GenPartialProfile , FailureMode FailMode) {
485
485
using namespace sampleprof ;
486
486
StringMap<FunctionSamples> ProfileMap;
487
487
SmallVector<std::unique_ptr<sampleprof::SampleProfileReader>, 5 > Readers;
@@ -538,7 +538,7 @@ mergeSampleProfile(const WeightedFileVector &Inputs, SymbolRemapper *Remapper,
538
538
// Make sure Buffer lives as long as WriterList.
539
539
auto Buffer = getInputFileBuf (ProfileSymbolListFile);
540
540
handleExtBinaryWriter (*Writer, OutputFormat, Buffer.get (), WriterList,
541
- CompressAllSections, UseMD5, PartialProfile );
541
+ CompressAllSections, UseMD5, GenPartialProfile );
542
542
Writer->write (ProfileMap);
543
543
}
544
544
@@ -670,10 +670,9 @@ static int merge_main(int argc, const char *argv[]) {
670
670
" use-md5" , cl::init (false ), cl::Hidden,
671
671
cl::desc (" Choose to use MD5 to represent string in name table (only "
672
672
" meaningful for -extbinary)" ));
673
- cl::opt<bool > PartialProfile (
674
- " partial-profile" , cl::init (false ), cl::Hidden,
675
- cl::desc (" Set the profile to be a partial profile (only meaningful "
676
- " for -extbinary)" ));
673
+ cl::opt<bool > GenPartialProfile (
674
+ " gen-partial-profile" , cl::init (false ), cl::Hidden,
675
+ cl::desc (" Generate a partial profile (only meaningful for -extbinary)" ));
677
676
678
677
cl::ParseCommandLineOptions (argc, argv, " LLVM profile data merger\n " );
679
678
@@ -708,7 +707,7 @@ static int merge_main(int argc, const char *argv[]) {
708
707
else
709
708
mergeSampleProfile (WeightedInputs, Remapper.get (), OutputFilename,
710
709
OutputFormat, ProfileSymbolListFile, CompressAllSections,
711
- UseMD5, PartialProfile , FailureMode);
710
+ UseMD5, GenPartialProfile , FailureMode);
712
711
713
712
return 0 ;
714
713
}
0 commit comments