InstrProf: Rename Decl parameters from S to D

No functionality change.

<rdar://problem/16435801>

llvm-svn: 206002
This commit is contained in:
Duncan P. N. Exon Smith 2014-04-10 23:37:36 +00:00
parent e9624291b1
commit 4a2f5ae8d5
1 changed files with 21 additions and 21 deletions

View File

@ -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) {