introducing ParmVarWithOriginalTypeDecl class to
keep track of the original parameter decl. types.
This is work in progress.
llvm-svn: 61286
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index be8cbe7..021becc 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -57,6 +57,16 @@
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,