From 8918d35dbde126c95350b674a2bb102692d90260 Mon Sep 17 00:00:00 2001 From: David Stone Date: Mon, 3 Jun 2024 03:09:13 -0600 Subject: [clang][Modules] Move `ASTSourceDescriptor` into its own file (#67930) --- clang/lib/Basic/Module.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'clang/lib/Basic/Module.cpp') diff --git a/clang/lib/Basic/Module.cpp b/clang/lib/Basic/Module.cpp index 045ef58..90b7b0d 100644 --- a/clang/lib/Basic/Module.cpp +++ b/clang/lib/Basic/Module.cpp @@ -724,18 +724,3 @@ void VisibleModuleSet::setVisible(Module *M, SourceLocation Loc, }; VisitModule({M, nullptr}); } - -ASTSourceDescriptor::ASTSourceDescriptor(Module &M) - : Signature(M.Signature), ClangModule(&M) { - if (M.Directory) - Path = M.Directory->getName(); - if (auto File = M.getASTFile()) - ASTFile = File->getName(); -} - -std::string ASTSourceDescriptor::getModuleName() const { - if (ClangModule) - return ClangModule->Name; - else - return std::string(PCHModuleName); -} -- cgit v1.1