For many targets, llvm-objdump and llvm-mc (https://reviews.llvm.org/D103004) support -M no-aliases (e.g. `RISCVInstPrinter::applyTargetSpecificCLOption`). This patch implements -M for llc. While here, rename "DisassemblerOptions" in llvm-mc to the more appropriate "InstPrinterOptions". For llvm-mc --assemble, there is no disassembler involved. Pull Request: https://github.com/llvm/llvm-project/pull/121078
5 lines
156 B
Plaintext
5 lines
156 B
Plaintext
# RUN: export LSAN_OPTIONS=detect_leaks=0
|
|
# RUN: not llvm-mc -M invalid /dev/null 2>&1 | FileCheck %s
|
|
|
|
# CHECK: error: invalid InstPrinter option 'invalid'
|