Delete cargo-cult code that doesn't affect the testsuite.
authorAdrian Prantl <aprantl@apple.com>
Fri, 24 Apr 2020 18:11:23 +0000 (11:11 -0700)
committerAdrian Prantl <aprantl@apple.com>
Fri, 24 Apr 2020 18:54:52 +0000 (11:54 -0700)
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

index 3446db0..4f35d8a 100644 (file)
@@ -1231,11 +1231,6 @@ void TypeSystemClang::SetOwningModule(clang::Decl *decl,
   decl->setFromASTFile();
   decl->setOwningModuleID(owning_module.GetValue());
   decl->setModuleOwnershipKind(clang::Decl::ModuleOwnershipKind::Visible);
-  if (auto *decl_ctx = llvm::dyn_cast<clang::DeclContext>(decl)) {
-    decl_ctx->setHasExternalVisibleStorage();
-    if (auto *ns = llvm::dyn_cast<NamespaceDecl>(decl_ctx))
-      ns->getPrimaryContext()->setMustBuildLookupTable();
-  }
 }
 
 OptionalClangModuleID