diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-02-09 19:34:22 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-02-09 19:34:22 +0000 |
commit | 67b556a0daebd738a087a3cb47ba846230684859 (patch) | |
tree | c7aa7b20918a8293f78a30dcfa6375c27e1dd811 /clang/lib/AST/DeclTemplate.cpp | |
parent | 8bf4205c703aecfe28a8b4e3ae796e5b40be4672 (diff) | |
download | bcm5719-llvm-67b556a0daebd738a087a3cb47ba846230684859.tar.gz bcm5719-llvm-67b556a0daebd738a087a3cb47ba846230684859.zip |
Eliminate TemplateArg so that we only have a single kind of
representation for template arguments. Also simplifies the interface
for ActOnClassTemplateSpecialization and eliminates some annoying
allocations of TemplateArgs.
My attempt at smart pointers for template arguments lists is
relatively lame. We can improve it once we're sure that we have the
right representation for template arguments.
llvm-svn: 64154
Diffstat (limited to 'clang/lib/AST/DeclTemplate.cpp')
-rw-r--r-- | clang/lib/AST/DeclTemplate.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/AST/DeclTemplate.cpp b/clang/lib/AST/DeclTemplate.cpp index ab5a3bc0b2f..4eb866d6887 100644 --- a/clang/lib/AST/DeclTemplate.cpp +++ b/clang/lib/AST/DeclTemplate.cpp @@ -44,11 +44,6 @@ TemplateParameterList::Create(ASTContext &C, SourceLocation TemplateLoc, NumParams, RAngleLoc); } -void TemplateArg::Destroy(ASTContext &C) { - if (Kind == ExprArg) - getAsExpr()->Destroy(C); -} - //===----------------------------------------------------------------------===// // TemplateDecl Implementation //===----------------------------------------------------------------------===// |