gh-104584: Add #line directives to executor_cases.c.h (#106126)

This commit is contained in:
Guido van Rossum 2023-06-27 06:56:39 -07:00 committed by GitHub
parent 33608fd67d
commit 0762775a15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 255 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1374,7 +1374,7 @@ class Analyzer:
def write_executor_instructions(self) -> None:
"""Generate cases for the Tier 2 interpreter."""
with open(self.executor_filename, "w") as f:
self.out = Formatter(f, 8)
self.out = Formatter(f, 8, self.emit_line_directives)
self.write_provenance_header()
for thing in self.everything:
match thing: