summaryrefslogtreecommitdiffstats
path: root/clang/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
commit7664ffb9543fccb863e05a5241a53c8075bffa82 (patch)
tree04a798a5dec8ec4407d0e206f86baec105039aca /clang/lib/AST/Decl.cpp
parent8a01b79274be3a2128be030f1ef3180d26e7317c (diff)
downloadbcm5719-llvm-7664ffb9543fccb863e05a5241a53c8075bffa82.tar.gz
bcm5719-llvm-7664ffb9543fccb863e05a5241a53c8075bffa82.zip
introducing ParmVarWithOriginalTypeDecl class to
keep track of the original parameter decl. types. This is work in progress. llvm-svn: 61286
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index be8cbe7344d..021becc85a2 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/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,
OpenPOWER on IntegriCloud