From 32a4ee77c9afa4dba3342113f6bfd0db3da3202a Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Thu, 10 Apr 2014 23:37:36 +0000 Subject: [PATCH] InstrProf: Rename Decl parameters from S to D No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206002 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenPGO.cpp | 42 +++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/lib/CodeGen/CodeGenPGO.cpp b/lib/CodeGen/CodeGenPGO.cpp index 36edf638cf..c8704e80f5 100644 --- a/lib/CodeGen/CodeGenPGO.cpp +++ b/lib/CodeGen/CodeGenPGO.cpp @@ -339,17 +339,17 @@ namespace { void VisitStmt(const Stmt *S) { VisitChildren(S); } /// Assign a counter to track entry to the function body. - void VisitFunctionDecl(const FunctionDecl *S) { - CounterMap[S->getBody()] = NextCounter++; - Visit(S->getBody()); + void VisitFunctionDecl(const FunctionDecl *D) { + CounterMap[D->getBody()] = NextCounter++; + Visit(D->getBody()); } - void VisitObjCMethodDecl(const ObjCMethodDecl *S) { - CounterMap[S->getBody()] = NextCounter++; - Visit(S->getBody()); + void VisitObjCMethodDecl(const ObjCMethodDecl *D) { + CounterMap[D->getBody()] = NextCounter++; + Visit(D->getBody()); } - void VisitBlockDecl(const BlockDecl *S) { - CounterMap[S->getBody()] = NextCounter++; - Visit(S->getBody()); + void VisitBlockDecl(const BlockDecl *D) { + CounterMap[D->getBody()] = NextCounter++; + Visit(D->getBody()); } /// Assign a counter to track the block following a label. void VisitLabelStmt(const LabelStmt *S) { @@ -502,25 +502,25 @@ namespace { } } - void VisitFunctionDecl(const FunctionDecl *S) { - RegionCounter Cnt(PGO, S->getBody()); + void VisitFunctionDecl(const FunctionDecl *D) { + RegionCounter Cnt(PGO, D->getBody()); Cnt.beginRegion(); - CountMap[S->getBody()] = PGO.getCurrentRegionCount(); - Visit(S->getBody()); + CountMap[D->getBody()] = PGO.getCurrentRegionCount(); + Visit(D->getBody()); } - void VisitObjCMethodDecl(const ObjCMethodDecl *S) { - RegionCounter Cnt(PGO, S->getBody()); + void VisitObjCMethodDecl(const ObjCMethodDecl *D) { + RegionCounter Cnt(PGO, D->getBody()); Cnt.beginRegion(); - CountMap[S->getBody()] = PGO.getCurrentRegionCount(); - Visit(S->getBody()); + CountMap[D->getBody()] = PGO.getCurrentRegionCount(); + Visit(D->getBody()); } - void VisitBlockDecl(const BlockDecl *S) { - RegionCounter Cnt(PGO, S->getBody()); + void VisitBlockDecl(const BlockDecl *D) { + RegionCounter Cnt(PGO, D->getBody()); Cnt.beginRegion(); - CountMap[S->getBody()] = PGO.getCurrentRegionCount(); - Visit(S->getBody()); + CountMap[D->getBody()] = PGO.getCurrentRegionCount(); + Visit(D->getBody()); } void VisitReturnStmt(const ReturnStmt *S) { -- 2.40.0