Skip to content

[lldb-moduleimport-test] Refactor dump of types from mangled name. #15425

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 22, 2018

Conversation

dcci
Copy link
Member

@dcci dcci commented Mar 22, 2018

In preparation for adding support for dump decl from mangled name.

In preparation for adding dump decl from mangled name.
@dcci
Copy link
Member Author

dcci commented Mar 22, 2018

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 7587729 into swiftlang:master Mar 22, 2018
@@ -62,6 +62,33 @@ static void printValidationInfo(llvm::StringRef data) {
}
}

static void resolveTypeFromMangledNameList(
swift::ASTContext &Ctx, llvm::SmallVector<std::string, 8> &MangledNames) {
Copy link
Contributor

Choose a reason for hiding this comment

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

LLVM style nitpicks: ArrayRef here…


static void
collectMangledNames(std::string &FilePath,
llvm::SmallVector<std::string, 8> &MangledNames) {
Copy link
Contributor

Choose a reason for hiding this comment

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

…and SmallVectorImpl here (don't need to hardcode the size). Also, const on FilePath.

@dcci
Copy link
Member Author

dcci commented Mar 22, 2018

Thanks for your review Jordan, I'll include these fixes in my next pull request.

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