diff options
author | Rong Xu <xur@google.com> | 2016-04-28 17:31:22 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2016-04-28 17:31:22 +0000 |
commit | 08afb05491aa7dd63cf14ba76261dff0203ee686 (patch) | |
tree | 8e3b8d64f7b4952ec59f6d48e6c085ce7b9375f0 /llvm/lib | |
parent | 06f445d65b44e30be072d757edb8299d239eca31 (diff) | |
download | bcm5719-llvm-08afb05491aa7dd63cf14ba76261dff0203ee686.tar.gz bcm5719-llvm-08afb05491aa7dd63cf14ba76261dff0203ee686.zip |
Minor format change and fixing typos in the comments. NFC.
llvm-svn: 267905
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
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<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; |