aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-12-20 20:56:12 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-12-20 20:56:12 +0000
commit73da9e462576faedc2cdf96b37a1c072b404b73d (patch)
tree7d3c502f674edea264104534d3ec5d8db3a211b3 /lib/AST/Decl.cpp
parent60d35413662ebdcd1d31e34a8a7c665eb6977f1e (diff)
introducing ParmVarWithOriginalTypeDecl class to
keep track of the original parameter decl. types. This is work in progress. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Decl.cpp')
-rw-r--r--lib/AST/Decl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/AST/Decl.cpp b/lib/AST/Decl.cpp
index be8cbe7344..021becc85a 100644
--- a/lib/AST/Decl.cpp
+++ b/lib/AST/Decl.cpp
@@ -57,6 +57,16 @@ ParmVarDecl *ParmVarDecl::Create(ASTContext &C, DeclContext *DC,
return new (Mem) ParmVarDecl(DC, L, Id, T, S, DefArg, PrevDecl);
}
+ParmVarWithOriginalTypeDecl *ParmVarWithOriginalTypeDecl::Create(
+ ASTContext &C, DeclContext *DC,
+ SourceLocation L, IdentifierInfo *Id,
+ QualType T, QualType OT, StorageClass S,
+ Expr *DefArg, ScopedDecl *PrevDecl) {
+ void *Mem = C.getAllocator().Allocate<ParmVarWithOriginalTypeDecl>();
+ return new (Mem) ParmVarWithOriginalTypeDecl(DC, L, Id, T, OT, S,
+ DefArg, PrevDecl);
+}
+
FunctionDecl *FunctionDecl::Create(ASTContext &C, DeclContext *DC,
SourceLocation L,
DeclarationName N, QualType T,