Skip to content

Commit dcb80a2

Browse files
committed
[SwiftSyntax] Remove another link dependency from swiftAST to clangAST when building the parser lib
1 parent 8ef5e9e commit dcb80a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/AST/ASTMangler.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,10 @@ std::string ASTMangler::mangleOpaqueTypeDecl(const OpaqueTypeDecl *decl) {
831831
}
832832

833833
std::string ASTMangler::mangleOpaqueTypeDecl(const ValueDecl *decl) {
834+
#if SWIFT_BUILD_ONLY_SYNTAXPARSERLIB
835+
return std::string(); // not needed for the parser library.
836+
#endif
837+
834838
OptimizeProtocolNames = false;
835839

836840
beginMangling();

0 commit comments

Comments
 (0)