Minor format change and fixing typos in the comments. NFC.

llvm-svn: 267905
This commit is contained in:
Rong Xu 2016-04-28 17:31:22 +00:00
parent 06f445d65b
commit 08afb05491
1 changed files with 7 additions and 10 deletions

View File

@ -103,12 +103,11 @@ static cl::opt<bool> DisableValueProfiling("disable-vp", cl::init(false),
cl::desc("Disable Value Profiling"));
// Command line option to set the maximum number of VP annotations to write to
// the metada for a single indirect call callsite.
static cl::opt<unsigned>
MaxNumAnnotations("icp-max-annotations", cl::init(3), cl::Hidden,
cl::ZeroOrMore,
cl::desc("Max number of annotations for a single indirect "
"call callsite"));
// the metadata for a single indirect call callsite.
static cl::opt<unsigned> MaxNumAnnotations(
"icp-max-annotations", cl::init(3), cl::Hidden, cl::ZeroOrMore,
cl::desc("Max number of annotations for a single indirect "
"call callsite"));
namespace {
class PGOInstrumentationGen : public ModulePass {
@ -463,10 +462,8 @@ public:
// The hotness of the function from the profile count.
enum FuncFreqAttr { FFA_Normal, FFA_Cold, FFA_Hot };
// Return the funtion hotness from the profile.
FuncFreqAttr getFuncFreqAttr() const {
return FreqAttr;
}
// Return the function hotness from the profile.
FuncFreqAttr getFuncFreqAttr() const { return FreqAttr; }
private:
Function &F;