File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ const clang::Module *ClangNode::getClangModule() const {
119119}
120120
121121void ClangNode::dump () const {
122+ #if SWIFT_BUILD_ONLY_SYNTAXPARSERLIB
123+ return ; // not needed for the parser library.
124+ #endif
125+
122126 if (auto D = getAsDecl ())
123127 D->dump ();
124128 else if (auto M = getAsMacro ())
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ Optional<UnexpectedClangTypeError> UnexpectedClangTypeError::checkClangType(
9292}
9393
9494void UnexpectedClangTypeError::dump () {
95+ #if SWIFT_BUILD_ONLY_SYNTAXPARSERLIB
96+ return ; // not needed for the parser library.
97+ #endif
98+
9599 auto &e = llvm::errs ();
96100 using Kind = UnexpectedClangTypeError::Kind;
97101 switch (errorKind) {
You can’t perform that action at this time.
0 commit comments