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 {
119
119
}
120
120
121
121
void ClangNode::dump () const {
122
+ #if SWIFT_BUILD_ONLY_SYNTAXPARSERLIB
123
+ return ; // not needed for the parser library.
124
+ #endif
125
+
122
126
if (auto D = getAsDecl ())
123
127
D->dump ();
124
128
else if (auto M = getAsMacro ())
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ Optional<UnexpectedClangTypeError> UnexpectedClangTypeError::checkClangType(
92
92
}
93
93
94
94
void UnexpectedClangTypeError::dump () {
95
+ #if SWIFT_BUILD_ONLY_SYNTAXPARSERLIB
96
+ return ; // not needed for the parser library.
97
+ #endif
98
+
95
99
auto &e = llvm::errs ();
96
100
using Kind = UnexpectedClangTypeError::Kind;
97
101
switch (errorKind) {
You can’t perform that action at this time.
0 commit comments