Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MC] Consume EndOfStatement in .cfi_{sections,endproc}
Previously these directives were always interpreted as having an extra blank line after them. Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D92612
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# RUN: llvm-mc -preserve-comments -triple i386-unknown-unknown %s >%t-1.s | ||
# RUN: llvm-mc -preserve-comments -triple i386-unknown-unknown %t-1.s >%t-2.s | ||
# RUN: diff %t-1.s %t-2.s | ||
|
||
# Test that various assembly round-trips when run through MC; the first | ||
# transition from hand-written to "canonical" output may introduce some small | ||
# differences, so we don't include the initial input in the comparison. | ||
|
||
.text | ||
|
||
# Some of these CFI instructions didn't consume the end of statement | ||
# consistently, which led to extra empty lines in the output. | ||
.cfi_sections .debug_frame | ||
.cfi_startproc | ||
.cfi_endproc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters