Skip to content

[clang][modules] Stop eagerly reading files with diagnostic pragmas #8534

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 2 commits into from
Apr 3, 2024

Conversation

jansvoboda11
Copy link

No description provided.

…` instead of `SourceLocation` (llvm#87427)

For pragma diagnostic mappings, we always write/read `SourceLocation`
with offset 0. This is equivalent to just writing a `FileID`, which is
exactly what this patch starts doing.

Originally reviewed here: https://reviews.llvm.org/D137213

(cherry picked from commit c925c16)
…lvm#87442)

This makes it so that the importer doesn't need to stat all input files
of a module that contain diagnostic pragmas, reducing file system
traffic.
@jansvoboda11 jansvoboda11 requested a review from artemcm April 3, 2024 17:16
@jansvoboda11
Copy link
Author

@swift-ci please test

@nkcsgexi nkcsgexi merged commit a798c8f into swift/release/6.0 Apr 3, 2024
@jansvoboda11 jansvoboda11 deleted the jan_svoboda/pragma-diags-release branch April 3, 2024 23:20
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