aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-25 18:39:40 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-25 18:39:40 +0000
commitafb6416bf7f04a00c44092e802f335bb3636489c (patch)
tree05a7372eb9cf3592f61728b3e40986be55743b0a
parenta2da780b325e78c6c6bbbb766459a73243c3cf9e (diff)
Move Type destructor out-of-line
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109381 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/AST/Type.h2
-rw-r--r--lib/AST/Type.cpp2
2 files changed, 3 insertions, 1 deletions
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,