-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-objdump] Handle -M for --macho
--macho -d uses the `parseInputMachO` code path, which does not handle -M. Add -M handling for --macho as well. Close #61019 Pull Request: #113795
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %s -o %t | ||
# RUN: llvm-objdump --macho -d -M no-aliases %t | FileCheck %s | ||
# RUN: llvm-objdump --macho -d --disassembler-options=no-aliases %t | FileCheck %s | ||
|
||
# CHECK: orr w1, wzr, w2 | ||
|
||
# RUN: llvm-objdump --macho -d %t | FileCheck %s --check-prefix=ALIAS | ||
|
||
# ALIAS: mov w1, w2 | ||
|
||
# RUN: not llvm-objdump --macho -d -M unknown %t 2>&1 | FileCheck %s -DFILE=%t --check-prefix=ERR | ||
|
||
# ERR: error: '[[FILE]]': unrecognized disassembler option: unknown | ||
|
||
mov w1, w2 |
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