forked from OSchip/llvm-project
InstrProf: Rename Decl parameters from S to D
No functionality change. <rdar://problem/16435801> llvm-svn: 206002
This commit is contained in:
parent
e9624291b1
commit
4a2f5ae8d5
|
@ -339,17 +339,17 @@ namespace {
|
||||||
void VisitStmt(const Stmt *S) { VisitChildren(S); }
|
void VisitStmt(const Stmt *S) { VisitChildren(S); }
|
||||||
|
|
||||||
/// Assign a counter to track entry to the function body.
|
/// Assign a counter to track entry to the function body.
|
||||||
void VisitFunctionDecl(const FunctionDecl *S) {
|
void VisitFunctionDecl(const FunctionDecl *D) {
|
||||||
CounterMap[S->getBody()] = NextCounter++;
|
CounterMap[D->getBody()] = NextCounter++;
|
||||||
Visit(S->getBody());
|
Visit(D->getBody());
|
||||||
}
|
}
|
||||||
void VisitObjCMethodDecl(const ObjCMethodDecl *S) {
|
void VisitObjCMethodDecl(const ObjCMethodDecl *D) {
|
||||||
CounterMap[S->getBody()] = NextCounter++;
|
CounterMap[D->getBody()] = NextCounter++;
|
||||||
Visit(S->getBody());
|
Visit(D->getBody());
|
||||||
}
|
}
|
||||||
void VisitBlockDecl(const BlockDecl *S) {
|
void VisitBlockDecl(const BlockDecl *D) {
|
||||||
CounterMap[S->getBody()] = NextCounter++;
|
CounterMap[D->getBody()] = NextCounter++;
|
||||||
Visit(S->getBody());
|
Visit(D->getBody());
|
||||||
}
|
}
|
||||||
/// Assign a counter to track the block following a label.
|
/// Assign a counter to track the block following a label.
|
||||||
void VisitLabelStmt(const LabelStmt *S) {
|
void VisitLabelStmt(const LabelStmt *S) {
|
||||||
|
@ -502,25 +502,25 @@ namespace {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisitFunctionDecl(const FunctionDecl *S) {
|
void VisitFunctionDecl(const FunctionDecl *D) {
|
||||||
RegionCounter Cnt(PGO, S->getBody());
|
RegionCounter Cnt(PGO, D->getBody());
|
||||||
Cnt.beginRegion();
|
Cnt.beginRegion();
|
||||||
CountMap[S->getBody()] = PGO.getCurrentRegionCount();
|
CountMap[D->getBody()] = PGO.getCurrentRegionCount();
|
||||||
Visit(S->getBody());
|
Visit(D->getBody());
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisitObjCMethodDecl(const ObjCMethodDecl *S) {
|
void VisitObjCMethodDecl(const ObjCMethodDecl *D) {
|
||||||
RegionCounter Cnt(PGO, S->getBody());
|
RegionCounter Cnt(PGO, D->getBody());
|
||||||
Cnt.beginRegion();
|
Cnt.beginRegion();
|
||||||
CountMap[S->getBody()] = PGO.getCurrentRegionCount();
|
CountMap[D->getBody()] = PGO.getCurrentRegionCount();
|
||||||
Visit(S->getBody());
|
Visit(D->getBody());
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisitBlockDecl(const BlockDecl *S) {
|
void VisitBlockDecl(const BlockDecl *D) {
|
||||||
RegionCounter Cnt(PGO, S->getBody());
|
RegionCounter Cnt(PGO, D->getBody());
|
||||||
Cnt.beginRegion();
|
Cnt.beginRegion();
|
||||||
CountMap[S->getBody()] = PGO.getCurrentRegionCount();
|
CountMap[D->getBody()] = PGO.getCurrentRegionCount();
|
||||||
Visit(S->getBody());
|
Visit(D->getBody());
|
||||||
}
|
}
|
||||||
|
|
||||||
void VisitReturnStmt(const ReturnStmt *S) {
|
void VisitReturnStmt(const ReturnStmt *S) {
|
||||||
|
|
Loading…
Reference in New Issue