diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-02 23:39:07 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-02 23:39:07 +0000 |
commit | 64650af7cc4352c6c67b9bd1bf8ef3ce7471b910 (patch) | |
tree | 18274cf067d1316eddc0650c2c6394a0dba85402 /lib/AST/Decl.cpp | |
parent | 541b63b1a9db77e4a8670e9823711c2c12e58afb (diff) |
Add a macro-based enumeration of all of the Decl nodes (like we do
with Stmt/Expr nodes), and convert some of the more mundane
switch-on-all-decl-kinds uses over to use this new file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r-- | lib/AST/Decl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp index 25317dbeb1..0a3801a78f 100644 --- a/lib/AST/Decl.cpp +++ b/lib/AST/Decl.cpp @@ -54,18 +54,18 @@ ParmVarDecl *ParmVarDecl::Create(ASTContext &C, DeclContext *DC, } QualType ParmVarDecl::getOriginalType() const { - if (const ParmVarWithOriginalTypeDecl *PVD = - dyn_cast<ParmVarWithOriginalTypeDecl>(this)) + if (const OriginalParmVarDecl *PVD = + dyn_cast<OriginalParmVarDecl>(this)) return PVD->OriginalType; return getType(); } -ParmVarWithOriginalTypeDecl *ParmVarWithOriginalTypeDecl::Create( +OriginalParmVarDecl *OriginalParmVarDecl::Create( ASTContext &C, DeclContext *DC, SourceLocation L, IdentifierInfo *Id, QualType T, QualType OT, StorageClass S, Expr *DefArg) { - return new (C) ParmVarWithOriginalTypeDecl(DC, L, Id, T, OT, S, DefArg); + return new (C) OriginalParmVarDecl(DC, L, Id, T, OT, S, DefArg); } FunctionDecl *FunctionDecl::Create(ASTContext &C, DeclContext *DC, |