[llvm] r267905 - Minor format change and fixing typos in the comments. NFC.
Rong Xu via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 28 10:31:22 PDT 2016
Author: xur
Date: Thu Apr 28 12:31:22 2016
New Revision: 267905
URL: http://llvm.org/viewvc/llvm-project?rev=267905&view=rev
Log:
Minor format change and fixing typos in the comments. NFC.
Modified:
llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp?rev=267905&r1=267904&r2=267905&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/PGOInstrumentation.cpp Thu Apr 28 12:31:22 2016
@@ -103,12 +103,11 @@ static cl::opt<bool> DisableValueProfili
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;
More information about the llvm-commits
mailing list