From afb6416bf7f04a00c44092e802f335bb3636489c Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sun, 25 Jul 2010 18:39:40 +0000 Subject: [PATCH] Move Type destructor out-of-line git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109381 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Type.h | 2 +- lib/AST/Type.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 203d13b09f..a49c83cf1d 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -807,7 +807,7 @@ protected: : CanonicalType(Canonical.isNull() ? QualType(this_(), 0) : Canonical), TC(tc), Dependent(dependent), LinkageKnown(false), CachedLinkage(NoLinkage), FromPCH(false) {} - virtual ~Type() {} + virtual ~Type(); friend class ASTContext; public: diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 1021943647..67fa1e6cf9 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -33,6 +33,8 @@ bool QualType::isConstant(QualType T, ASTContext &Ctx) { return false; } +Type::~Type() { } + void DependentSizedArrayType::Profile(llvm::FoldingSetNodeID &ID, ASTContext &Context, QualType ET, -- 2.40.0