diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-10 23:37:36 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-04-10 23:37:36 +0000 |
commit | 4a2f5ae8d50d8b00c4d489729168f8a887dfe09d (patch) | |
tree | 0914c8fa85b2397d1dde6ab7107ff519785fd266 /clang/lib/CodeGen/CodeGenPGO.cpp | |
parent | e9624291b16d946f37530291d9e3e253e2db6a5e (diff) | |
download | bcm5719-llvm-4a2f5ae8d50d8b00c4d489729168f8a887dfe09d.tar.gz bcm5719-llvm-4a2f5ae8d50d8b00c4d489729168f8a887dfe09d.zip |
InstrProf: Rename Decl parameters from S to D
No functionality change.
<rdar://problem/16435801>
llvm-svn: 206002
Diffstat (limited to 'clang/lib/CodeGen/CodeGenPGO.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenPGO.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/clang/lib/CodeGen/CodeGenPGO.cpp b/clang/lib/CodeGen/CodeGenPGO.cpp index 36edf638cf4..c8704e80f56 100644 --- a/clang/lib/CodeGen/CodeGenPGO.cpp +++ b/clang/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) { |