-
Notifications
You must be signed in to change notification settings - Fork 754
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-mc] Don't print initial .text for disassembler
``` % echo 90 | llvm-mc -triple=x86_64 --disassemble --hex .text nop ``` The initial `.text` kludge is due `initSection`, which is actually only needed by AIX XCOFF for its `getCurrentSectionOnly()` use in MCAsmStreamer::emitInstruction (https://reviews.llvm.org/D95518). Adjust MCAsmStreamer::emitInstruction to not trigger failures on ``` echo 7c4303a6 | llvm-mc --cdis --hex --triple=powerpc-aix-ibm-xcoff ``` Pull Request: llvm/llvm-project#120185
- Loading branch information
Showing
5 changed files
with
5 additions
and
11 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Test that llvm-mc doesn't crash when disassembling a line that ends with a | ||
# space. | ||
RUN: echo -n ' ' | llvm-mc -disassemble | ||
RUN: echo -n ' ' | llvm-mc -disassemble | count 0 |
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