aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-10 23:37:36 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-10 23:37:36 +0000
commit32a4ee77c9afa4dba3342113f6bfd0db3da3202a (patch)
treee5937d7397c7cbcf0279d3d304090e8ed09df60b
parentd0ffe4b87c0846c50c5ab7eeeed0f003843a43b1 (diff)
downloadclang_35a-32a4ee77c9afa4dba3342113f6bfd0db3da3202a.tar.gz
InstrProf: Rename Decl parameters from S to D
No functionality change. <rdar://problem/16435801> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206002 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CodeGenPGO.cpp42
1 files 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) {