From 4e5a4032df58d697795531374fda4f3f866e87dc Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Thu, 10 Sep 2015 17:13:31 +0000 Subject: Debug Info: Remove an unnecessary debug type visitor. Thanks to dblaikie for spotting this. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247303 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/ObjectFilePCHContainerOperations.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/CodeGen/ObjectFilePCHContainerOperations.cpp') diff --git a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp index a850c5ae39..b16544e2e1 100644 --- a/lib/CodeGen/ObjectFilePCHContainerOperations.cpp +++ b/lib/CodeGen/ObjectFilePCHContainerOperations.cpp @@ -70,13 +70,6 @@ class PCHContainerGenerator : public ASTConsumer { return true; } - bool VisitValueDecl(ValueDecl *D) { - QualType QualTy = D->getType(); - if (!QualTy.isNull() && CanRepresent(QualTy.getTypePtr())) - DI.getOrCreateStandaloneType(QualTy, D->getLocation()); - return true; - } - bool VisitObjCInterfaceDecl(ObjCInterfaceDecl *D) { QualType QualTy(D->getTypeForDecl(), 0); if (!QualTy.isNull() && CanRepresent(QualTy.getTypePtr())) -- cgit v1.2.1