diff options
| author | Steve Naroff <snaroff@apple.com> | 2007-09-13 23:52:58 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2007-09-13 23:52:58 +0000 |
| commit | a23cc796542871932390078233c3b0cd2f74a160 (patch) | |
| tree | a6d81f28cdb6a2cac716bce395dafd1dd5e5a5e1 /clang/Analysis | |
| parent | 9def2b15c1193ee423ffe11125154bd86dd71a1d (diff) | |
| download | bcm5719-llvm-a23cc796542871932390078233c3b0cd2f74a160.tar.gz bcm5719-llvm-a23cc796542871932390078233c3b0cd2f74a160.zip | |
Move Decl::NextDeclarator (w/ setters/getters) down to ScopedDecl/FieldDecl.
Decl is now svelte:-)
llvm-svn: 41935
Diffstat (limited to 'clang/Analysis')
| -rw-r--r-- | clang/Analysis/LiveVariables.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/Analysis/LiveVariables.cpp b/clang/Analysis/LiveVariables.cpp index ab5c552af73..89cea66789e 100644 --- a/clang/Analysis/LiveVariables.cpp +++ b/clang/Analysis/LiveVariables.cpp @@ -41,8 +41,8 @@ public: void VisitStmt(Stmt* S); void VisitDeclRefExpr(DeclRefExpr* DR); void VisitDeclStmt(DeclStmt* DS); - void Register(Decl* D); - void RegisterDeclChain(Decl* D); + void Register(ScopedDecl* D); + void RegisterDeclChain(ScopedDecl* D); void RegisterUsedDecls(); }; @@ -59,12 +59,12 @@ void RegisterDecls::VisitDeclStmt(DeclStmt* DS) { RegisterDeclChain(DS->getDecl()); } -void RegisterDecls::RegisterDeclChain(Decl* D) { +void RegisterDecls::RegisterDeclChain(ScopedDecl* D) { for (; D != NULL ; D = D->getNextDeclarator()) Register(D); } -void RegisterDecls::Register(Decl* D) { +void RegisterDecls::Register(ScopedDecl* D) { if (VarDecl* V = dyn_cast<VarDecl>(D)) { LiveVariables::VPair& VP = L.getVarInfoMap()[V]; @@ -240,7 +240,7 @@ void LivenessTFuncs::VisitDeclStmt(DeclStmt* DS) { // be live before they are declared. Declarations, however, are not kills // in the sense that the value is obliterated, so we do not register // DeclStmts as a "kill site" for a variable. - for (Decl* D = DS->getDecl(); D != NULL ; D = D->getNextDeclarator()) + for (ScopedDecl* D = DS->getDecl(); D != NULL ; D = D->getNextDeclarator()) KillVar(cast<VarDecl>(D)); } |

