Skip to content

TBDGen: avoid emitting symbols with OBJC_CLASS and OBJC_METACLASS prefixes #30267

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2020

Conversation

nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Mar 6, 2020

rdar://60057489

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Mar 6, 2020

@swift-ci please smoke test

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Mar 6, 2020

@swift-ci please smoke test

// If a symbol is implied, we don't need to emit it explictly into the tbd file.
// e.g. When a symbol is in the `objc-classes` section in a tbd file, a additional
// symbol with `_OBJC_CLASS_$_` is implied.
static bool isSymbolImplied(StringRef name) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead, please just comment out these two calls elsewhere in this file:

addSymbol(LinkEntity::forObjCClass(CD));
addSymbol(LinkEntity::forObjCMetaclass(CD));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do need them in the symbol sets for verifying against irgen.

@nkcsgexi nkcsgexi requested a review from cyndyishida March 6, 2020 23:57
@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Mar 7, 2020

@swift-ci please smoke test

@nkcsgexi nkcsgexi merged commit a09b641 into swiftlang:master Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants