Skip to content
Snippets Groups Projects
Commit 32a4ee77 authored by Duncan P. N. Exon Smith's avatar Duncan P. N. Exon Smith
Browse files

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
parent d0ffe4b8
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment