Skip to content

[SourceManager] Use llvm::SourceMgr::FindLocForLineAndColumn() #36287

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 4, 2021

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Mar 4, 2021

To resolve offset from line and column.
llvm::SourceMgr::FindLocForLineAndColumn() uses line tables. It's much faster than manual O(n) scanning.

To resolvve offset from line and column.
'llvm::SourceMgr::FindLocForLineAndColumn()' uses line tables. It's much
faster than manual O(n) scanning.
@rintaro rintaro requested a review from nkcsgexi March 4, 2021 19:35
@rintaro
Copy link
Member Author

rintaro commented Mar 4, 2021

@swift-ci Please smoke test

Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

👍

@rintaro rintaro merged commit 362954b into swiftlang:main Mar 4, 2021
@rintaro rintaro deleted the resolvefromlinecol branch March 4, 2021 23:48
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.

2 participants