From 08afb05491aa7dd63cf14ba76261dff0203ee686 Mon Sep 17 00:00:00 2001 From: Rong Xu Date: Thu, 28 Apr 2016 17:31:22 +0000 Subject: Minor format change and fixing typos in the comments. NFC. llvm-svn: 267905 --- .../Transforms/Instrumentation/PGOInstrumentation.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp index c9e315bc372..3aa664b6a98 100644 --- a/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp +++ b/llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp @@ -103,12 +103,11 @@ static cl::opt 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 - 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 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; -- cgit v1.2.3