mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-03 19:32:35 +00:00
Allow oformat to accept format starting with elf as acceptable format. isOutputFormatBinary returns false in such case.
Example: --oformat elf64-x86-64 Differential Revision: https://reviews.llvm.org/D50105 llvm-svn: 338445
This commit is contained in:
parent
acbbf4bf78
commit
9d9113fc13
@ -501,6 +501,8 @@ static bool isOutputFormatBinary(opt::InputArgList &Args) {
|
||||
StringRef S = Arg->getValue();
|
||||
if (S == "binary")
|
||||
return true;
|
||||
if (S.startswith("elf"))
|
||||
return false;
|
||||
error("unknown --oformat value: " + S);
|
||||
}
|
||||
return false;
|
||||
|
@ -19,6 +19,8 @@
|
||||
# RUN: | FileCheck %s --check-prefix ERR
|
||||
# ERR: unknown --oformat value: foo
|
||||
|
||||
# RUN: ld.lld -o /dev/null %t --oformat elf
|
||||
|
||||
.text
|
||||
.align 4
|
||||
.globl _start
|
||||
|
Loading…
Reference in New Issue
Block a user