diff options
author | Wei Mi <wmi@google.com> | 2018-06-12 05:53:49 +0000 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2018-06-12 05:53:49 +0000 |
commit | 7253cd85800ac2f28b10d2d7b498449e4060a4a4 (patch) | |
tree | a619a0e41d9e54ca32281486f91b7e9ceb57c1ab /tools/llvm-profdata | |
parent | ddabdc0f8c4db8918a4c4357762910cab40e6232 (diff) |
[NFC] Change sample profile format enum name SPF_Raw_Binary to SPF_Binary.
Some out-of-tree targets depend on the enum name SPF_Binary. Keep the name
can avoid unnecessary churn to those targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-profdata')
-rw-r--r-- | tools/llvm-profdata/llvm-profdata.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tools/llvm-profdata/llvm-profdata.cpp b/tools/llvm-profdata/llvm-profdata.cpp index cab1237f7aa..1a0b9e127bb 100644 --- a/tools/llvm-profdata/llvm-profdata.cpp +++ b/tools/llvm-profdata/llvm-profdata.cpp @@ -39,7 +39,7 @@ enum ProfileFormat { PF_Text, PF_Compact_Binary, PF_GCC, - PF_Raw_Binary + PF_Binary }; static void warn(Twine Message, std::string Whence = "", @@ -242,7 +242,7 @@ static void mergeInstrProfile(const WeightedFileVector &Inputs, if (OutputFilename.compare("-") == 0) exitWithError("Cannot write indexed profdata format to stdout."); - if (OutputFormat != PF_Raw_Binary && OutputFormat != PF_Compact_Binary && + if (OutputFormat != PF_Binary && OutputFormat != PF_Compact_Binary && OutputFormat != PF_Text) exitWithError("Unknown format is specified."); @@ -324,7 +324,7 @@ static void mergeInstrProfile(const WeightedFileVector &Inputs, static sampleprof::SampleProfileFormat FormatMap[] = { sampleprof::SPF_None, sampleprof::SPF_Text, sampleprof::SPF_Compact_Binary, - sampleprof::SPF_GCC, sampleprof::SPF_Raw_Binary}; + sampleprof::SPF_GCC, sampleprof::SPF_Binary}; static void mergeSampleProfile(const WeightedFileVector &Inputs, StringRef OutputFilename, @@ -471,14 +471,13 @@ static int merge_main(int argc, const char *argv[]) { cl::values(clEnumVal(instr, "Instrumentation profile (default)"), clEnumVal(sample, "Sample profile"))); cl::opt<ProfileFormat> OutputFormat( - cl::desc("Format of output profile"), cl::init(PF_Raw_Binary), - cl::values( - clEnumValN(PF_Raw_Binary, "binary", "Binary encoding (default)"), - clEnumValN(PF_Compact_Binary, "compbinary", - "Compact binary encoding"), - clEnumValN(PF_Text, "text", "Text encoding"), - clEnumValN(PF_GCC, "gcc", - "GCC encoding (only meaningful for -sample)"))); + cl::desc("Format of output profile"), cl::init(PF_Binary), + cl::values(clEnumValN(PF_Binary, "binary", "Binary encoding (default)"), + clEnumValN(PF_Compact_Binary, "compbinary", + "Compact binary encoding"), + clEnumValN(PF_Text, "text", "Text encoding"), + clEnumValN(PF_GCC, "gcc", + "GCC encoding (only meaningful for -sample)"))); cl::opt<bool> OutputSparse("sparse", cl::init(false), cl::desc("Generate a sparse profile (only meaningful for -instr)")); cl::opt<unsigned> NumThreads( |